mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Applying date format from configuration to date specification
This commit is contained in:
parent
410d517a92
commit
adafaa4db2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user