mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-24 00:42:43 +00:00
Remove fallback
This commit is contained in:
parent
a16e29016d
commit
7fef0ac8f7
@ -298,12 +298,7 @@ class Page {
|
||||
*/
|
||||
function millis_to_date($millis) {
|
||||
$ts = $millis / 1000;
|
||||
|
||||
$result = strftime($this->settings->date_format, $ts);
|
||||
if ($result === "" || !is_string($result)) {
|
||||
// Fallback to date() if strftime() doesn't work
|
||||
return date("F j, Y, g:i A", $ts);
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user