From adafaa4db22d4b070c9c23150cb26b7f2ae60849 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Mon, 14 Sep 2020 17:56:09 +0200 Subject: [PATCH] Applying date format from configuration to date specification --- pandora_console/include/functions_ui.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 5d02dc1cd1..2923af870c 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -541,7 +541,9 @@ function ui_print_timestamp($unixtime, $return=false, $option=[]) pandora_setlocale(); $title = human_time_comparation($unixtime); - $strf_format = date2strftime_format($config['date_format'], $unixtime); + $date = new DateTime(); + $date->setTimestamp($unixtime); + $strf_format = $date->format($config['date_format']); $data = strftime( $strf_format, $unixtime