diff --git a/src/Util/DateTimeFormat.php b/src/Util/DateTimeFormat.php index 5dfb0d6d1..679d7fc72 100644 --- a/src/Util/DateTimeFormat.php +++ b/src/Util/DateTimeFormat.php @@ -135,7 +135,7 @@ class DateTimeFormat $s = 'now'; } - $s = self::fixDateFormat($s); + $s = self::fix($s); /* * Slight hackish adjustment so that 'zero' datetime actually returns what is intended @@ -181,7 +181,7 @@ class DateTimeFormat * @param string $dateString * @return string */ - private static function fixDateFormat(string $dateString): string + public static function fix(string $dateString): string { $patterns = [ ['#(\w+), (\d+/\d+/\d+) - (\d+:\d+)#', '$1, $2 $3'],