From 6b917718fd4472cac36ef7f7edfbb15368bcf80e Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 6 Oct 2022 21:09:52 +0000 Subject: [PATCH] Juts another date format fix --- src/Util/DateTimeFormat.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Util/DateTimeFormat.php b/src/Util/DateTimeFormat.php index b790e1f64..45ed477fa 100644 --- a/src/Util/DateTimeFormat.php +++ b/src/Util/DateTimeFormat.php @@ -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; }