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
|
* @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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue