Simplify method name for DateTimeFormat::fix

This commit is contained in:
Hypolite Petovan 2022-10-07 17:32:34 -04:00
parent 9d2edcf0e1
commit c0447ced48

View file

@ -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'],