Update common.php

pull/128/head
qkqpttgf 2020-08-23 19:25:36 +08:00 committed by GitHub
parent 4ef20bdf50
commit 3842fb7952
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -960,9 +960,9 @@ function size_format($byte)
function time_format($ISO)
{
if ($ISO=='') return date('Y-m-d H:i:s');
$ISO = str_replace('T', ' ', $ISO);
$ISO = str_replace('Z', ' ', $ISO);
//return $ISO;
return date('Y-m-d H:i:s',strtotime($ISO . " UTC"));
}