Update common.php

This commit is contained in:
qkqpttgf
2020-08-23 19:25:36 +08:00
committed by GitHub
parent 4ef20bdf50
commit 3842fb7952
+1 -1
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"));
}