Closed NestorTejero closed 4 years ago
Ah yes, this is indeed a bug. We originally handled this fully in regular expressions, but to fix a day of week bug we needed to resort to this technique instead. I just posted a PR to fix this by normalizing the strings before checking.
Issue Description
From the 0.15.8 release, the
dddd
andddd
tokens are not case insensitive. For this, only proper capitalisations work: 'Monday' in English, 'lunes' in Spanish and so on. Any different capitalisation breaks onDateTimeParser._parse_token()
.For example this "MONDAY" does not work (it does with "Monday"):
And produces the following error:
Same with "Lunes" instead of "lunes":
It works well when deleting the following lines, introduced in the PR !823:
I wonder if this is a feature or a bug. To me, it is a bug, since other non-conventional capitalisations work for other tokens, such as "JUNE" instead of "June" in this example:
System Info