mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-07 12:38:11 +08:00
Update common.php
This commit is contained in:
parent
76fdaa116a
commit
e141080309
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user