mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +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();
|
pandora_setlocale();
|
||||||
|
|
||||||
$title = human_time_comparation($unixtime);
|
$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(
|
$data = strftime(
|
||||||
$strf_format,
|
$strf_format,
|
||||||
$unixtime
|
$unixtime
|
||||||
|
Loading…
x
Reference in New Issue
Block a user