Simplify method name for DateTimeFormat::fix
This commit is contained in:
parent
9d2edcf0e1
commit
c0447ced48
|
@ -135,7 +135,7 @@ class DateTimeFormat
|
||||||
$s = 'now';
|
$s = 'now';
|
||||||
}
|
}
|
||||||
|
|
||||||
$s = self::fixDateFormat($s);
|
$s = self::fix($s);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Slight hackish adjustment so that 'zero' datetime actually returns what is intended
|
* Slight hackish adjustment so that 'zero' datetime actually returns what is intended
|
||||||
|
@ -181,7 +181,7 @@ class DateTimeFormat
|
||||||
* @param string $dateString
|
* @param string $dateString
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
private static function fixDateFormat(string $dateString): string
|
public static function fix(string $dateString): string
|
||||||
{
|
{
|
||||||
$patterns = [
|
$patterns = [
|
||||||
['#(\w+), (\d+/\d+/\d+) - (\d+:\d+)#', '$1, $2 $3'],
|
['#(\w+), (\d+/\d+/\d+) - (\d+:\d+)#', '$1, $2 $3'],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user