Small fix for PHP 8.2 compatible

This commit is contained in:
PopOS 2023-02-04 18:02:14 +02:00
parent 5fea13cbd0
commit 5b30e85da9
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
/**