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:
@@ -23,7 +23,7 @@ class Modifier
|
|||||||
* @param string $format
|
* @param string $format
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public static function dateFormat($date, $format = "%b %e, %Y")
|
public static function dateFormat($date, $format = "Y m d")
|
||||||
{
|
{
|
||||||
if (!is_numeric($date)) {
|
if (!is_numeric($date)) {
|
||||||
$date = strtotime($date);
|
$date = strtotime($date);
|
||||||
@@ -31,7 +31,7 @@ class Modifier
|
|||||||
$date = time();
|
$date = time();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return strftime($format, $date);
|
return date($format, $date);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user