Open BilgeDenizKocakk opened 2 years ago
It works as expected if you indicate the input language:
>>> dateparser.parse("20 Mart 2001", languages=["tr"])
datetime.datetime(2001, 3, 20, 0, 0)
If you know the input language, you should always pass it to dateparser. If you do not, 20 Mart 2001
could be an ambiguous date.
I am reopening in case we can be more smart about this specific scenario, but I consider this a minor issue.
Did not realize we could specify the language, just started using this library -- sorry. Thanks for your help!
Could be related to this https://github.com/scrapinghub/dateparser/issues/1099.
The parser does not parse "Mart", the Turkish word for "March", correctly.
For example, 20 Mart 2001 is parsed as 2001-11-20 00:00:00-09:30, but it should be 2001-03-20 00:00:00.
As can be seen below, this issue does not persist with other months, and it is specific to Mart.
I believe the reason for this is MART - Marquesas Time.