Fix bug in month names similar in English and German

This commit is contained in:
jrenslin committed 2021-01-06 16:07:21 +01:00
1 parent 8f612dede1
commit a6030e4a5f
2 files changed
+2 -3

No files matched your search

+2 -2
View File
@@ -403,14 +403,14 @@ final class NodaTimeSplitter {
foreach (self::MONTH_NAMES_ENGLISH as $monthVal => $monthValidNames) {
if (self::stri_occurs($datum, $monthValidNames)) {
if (!empty($monat)) return [];
if (!empty($monat)) break;
$monat = (string)$monthVal;
}
}
foreach (self::MONTH_NAMES_GERMAN as $monthVal => $monthValidNames) {
if (self::stri_occurs($datum, $monthValidNames)) {
if (!empty($monat)) return [];
if (!empty($monat)) break;
$monat = (string)$monthVal;
}
}