Applying date format from configuration to date specification

This commit is contained in:
fbsanchez 2020-09-14 17:56:09 +02:00
parent 410d517a92
commit adafaa4db2
1 changed files with 3 additions and 1 deletions

View File

@ -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