Merge branch 'ent-6320-10385-bug-timestamp-general-consola' into 'develop'
Applying date format from configuration to date specification See merge request artica/pandorafms!3457
This commit is contained in:
commit
48fff2ff4f
|
@ -541,11 +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);
|
||||
$data = strftime(
|
||||
$strf_format,
|
||||
$unixtime
|
||||
);
|
||||
$date = new DateTime();
|
||||
$date->setTimestamp($unixtime);
|
||||
$data = $date->format($config['date_format']);
|
||||
} else if ($prominent == 'compact') {
|
||||
$units = 'tiny';
|
||||
$title = date($config['date_format'], $unixtime);
|
||||
|
|
Loading…
Reference in New Issue