]> git.mxchange.org Git - friendica.git/commitdiff
Juts another date format fix
authorMichael <heluecht@pirati.ca>
Thu, 6 Oct 2022 21:09:52 +0000 (21:09 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 6 Oct 2022 21:09:52 +0000 (21:09 +0000)
src/Util/DateTimeFormat.php

index b790e1f6411aa77ed4f2105ce3b77924ba4e544c..45ed477fa7ee3e06ee1562c7ff78304a9f151fc1 100644 (file)
@@ -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;
        }