Simplify method name for DateTimeFormat::fix
This commit is contained in:
parent
9d2edcf0e1
commit
c0447ced48
1 changed files with 2 additions and 2 deletions
|
@ -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'],
|
||||
|
|
Loading…
Reference in a new issue