Skip to content

Commit

Permalink
Fix day format
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoSWD committed Jun 19, 2024
1 parent 571015e commit e81db0c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Infrastructure/Schedule/InfoSheetScheduleParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ private function createStartDate(string $day, string $time, DateTimeZone $timeZo
// Year is missing!!

$day = preg_replace('~(\d{1,2})(?:st|nd|rd|th|ve)~', '$1', $day);
$day = str_replace(',', '', $day);

return DateTimeImmutable::createFromFormat(
'l j M Y H:i',
Expand Down

0 comments on commit e81db0c

Please sign in to comment.