Update common.php

This commit is contained in:
邹景立 2025-02-21 10:46:48 +08:00
parent 76fdaa116a
commit e141080309

View File

@ -453,10 +453,10 @@ if (!function_exists('format_datetime')) {
return '-';
} elseif (is_numeric($datetime)) {
return date(lang($format), intval($datetime));
} elseif ($timestamp = strtotime($datetime)) {
} elseif ($timestamp = strtotime((string)$datetime)) {
return date(lang($format), $timestamp);
} else {
return $datetime;
return (string)$datetime;
}
}
}