Merge pull request #11966 from annando/date-correction
Juts another date format fix
This commit is contained in:
commit
fe442683ef
1 changed files with 2 additions and 1 deletions
|
@ -189,12 +189,13 @@ class DateTimeFormat
|
|||
['#(\d+-\d+-\d+)T(\d+:\d+:\d+\.\d+)ZZ#', '$1T$2Z'],
|
||||
['#(\w+), (\d+ \w+ \d+) (\d+:\d+:\d+) (.+)#', '$2 $3 $4'],
|
||||
['#(\d+:\d+) (\w+), (\w+) (\d+), (\d+)#', '$1 $2 $3 $4 $5'],
|
||||
['#(\w+ \d+, \d+) - (\d+:\d+)#', '$1, $2'],
|
||||
];
|
||||
|
||||
foreach ($patterns as $pattern) {
|
||||
$dateString = preg_replace($pattern[0], $pattern[1], $dateString);
|
||||
}
|
||||
|
||||
|
||||
return $dateString;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue