mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Small fix for PHP 8.2 compatible
This commit is contained in:
parent
5fea13cbd0
commit
5b30e85da9
@ -23,7 +23,7 @@ class Modifier
|
||||
* @param string $format
|
||||
* @return string
|
||||
*/
|
||||
public static function dateFormat($date, $format = "%b %e, %Y")
|
||||
public static function dateFormat($date, $format = "Y m d")
|
||||
{
|
||||
if (!is_numeric($date)) {
|
||||
$date = strtotime($date);
|
||||
@ -31,7 +31,7 @@ class Modifier
|
||||
$date = time();
|
||||
}
|
||||
}
|
||||
return strftime($format, $date);
|
||||
return date($format, $date);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user