forked from Public/pics
Replace deprecated strftime calls
This commit is contained in:
parent
69417c36ed
commit
0ec0de4414
@ -89,7 +89,7 @@ class ManageErrors extends HTMLController
|
|||||||
'header' => 'UID',
|
'header' => 'UID',
|
||||||
'is_sortable' => true,
|
'is_sortable' => true,
|
||||||
'parse' => [
|
'parse' => [
|
||||||
'link' => BASEURL . '/member/?id={ID_USER}',
|
'link' => BASEURL . '/edituser/?id={ID_USER}',
|
||||||
'data' => 'id_user',
|
'data' => 'id_user',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
@ -228,9 +228,9 @@ class GenericTable
|
|||||||
// Timestamps get custom treatment.
|
// Timestamps get custom treatment.
|
||||||
case 'timestamp':
|
case 'timestamp':
|
||||||
if (empty($options['data']['pattern']) || $options['data']['pattern'] === 'long')
|
if (empty($options['data']['pattern']) || $options['data']['pattern'] === 'long')
|
||||||
$pattern = '%F %H:%M';
|
$pattern = 'Y-m-d H:i';
|
||||||
elseif ($options['data']['pattern'] === 'short')
|
elseif ($options['data']['pattern'] === 'short')
|
||||||
$pattern = '%F';
|
$pattern = 'Y-m-d';
|
||||||
else
|
else
|
||||||
$pattern = $options['data']['pattern'];
|
$pattern = $options['data']['pattern'];
|
||||||
|
|
||||||
@ -242,7 +242,7 @@ class GenericTable
|
|||||||
if (isset($options['data']['if_null']) && $timestamp == 0)
|
if (isset($options['data']['if_null']) && $timestamp == 0)
|
||||||
$value = $options['data']['if_null'];
|
$value = $options['data']['if_null'];
|
||||||
else
|
else
|
||||||
$value = strftime($pattern, $timestamp);
|
$value = date($pattern, $timestamp);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user