Add yet another case to DateTimeFormat::fix

- Address https://github.com/friendica/friendica/issues/12488#issuecomment-1372637862
This commit is contained in:
Hypolite Petovan 2023-01-09 08:51:20 -05:00
parent 79a646550f
commit 6bee344681
2 changed files with 6 additions and 2 deletions

View file

@ -182,8 +182,8 @@ class DateTimeFormat
*/
public static function fix(string $dateString): string
{
$search = ['Mär', 'März', 'Mai', 'Juni', 'Juli', 'Okt', 'Dez', 'ET' , 'ZZ', ' - ', '+', ' (Coordinated Universal Time)'];
$replace = ['Mar', 'Mar' , 'May', 'Jun' , 'Jul' , 'Oct', 'Dec', 'EST', 'Z' , ', ' , '+' , ''];
$search = ['Mär', 'März', 'Mai', 'Juni', 'Juli', 'Okt', 'Dez', 'ET' , 'ZZ', ' - ', '+', '+', ' (Coordinated Universal Time)'];
$replace = ['Mar', 'Mar' , 'May', 'Jun' , 'Jul' , 'Oct', 'Dec', 'EST', 'Z' , ', ' , '+' , '+' , ''];
$dateString = str_replace($search, $replace, $dateString);