fix wrong dt::str parameter. (thanks @brol)

master
Jean-Christian Paul Denis 2022-12-26 21:23:44 +01:00
parent 36796545d5
commit db9c9732ed
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 3 additions and 3 deletions

View File

@ -289,7 +289,7 @@ if (empty($module) && $type != '') {
'<td class="nowrap maximal"> ' . $code_id . '</td>';
if (isset($backups[$code_id])) {
$time[$code_id] = 'UTC';
$time[$code_id] = 0;
foreach ($backups[$code_id] as $file => $info) {
$time[$code_id] = isset($time[$code_id]) && $time[$code_id] > $info['time'] ?
$time[$code_id] : $info['time'];
@ -297,7 +297,7 @@ if (empty($module) && $type != '') {
echo
'<td class="nowrap">' . count($backups[$code_id]) . '</td>' .
'<td class="nowrap"> ' .
dt::str('%Y-%m-%d %H:%M', $time[$code_id], dcCore::app()->blog->settings->system->blog_timezone) .
dt::str('%Y-%m-%d %H:%M', (int) $time[$code_id], dcCore::app()->blog->settings->system->blog_timezone) .
'</td>';
} else {
echo '<td class="nowrap">' . __('no backups') . '</td><td class="maximal nowrap">-</td>';
@ -361,7 +361,7 @@ if (empty($module) && $type != '') {
$backup_code['code'],
dt::str(
dcCore::app()->blog->settings->system->date_format . ' ' . dcCore::app()->blog->settings->system->time_format,
$backup_code['time'],
(int) $backup_code['time'],
dcCore::app()->blog->settings->system->blog_timezone
),
$backup_code['path']['basename'],