dateparser icon indicating copy to clipboard operation
dateparser copied to clipboard

can't parse Thu, 19 Jan 2023 10:45:00 +03

Open electroglyph opened this issue 2 years ago • 2 comments

dateparser.parse('Thu, 19 Jan 2023 10:45:00 +03') = None

electroglyph avatar Jan 19 '23 12:01 electroglyph

Thank you for reporting this issue. It seems that if there is +03 this is the reason why the dateparser returns None.

In [8]: dateparser.parse('Thu, 19 Jan 2023 10:45:00')
Out[8]: datetime.datetime(2023, 1, 19, 10, 45)

serhii73 avatar Jan 19 '23 12:01 serhii73

strange result if 'Thu, ' is removed from the start:

dateparser.parse('19 Jan 2023 10:45:00 +03')
datetime.datetime(2023, 1, 3, 10, 45)

electroglyph avatar Jan 19 '23 13:01 electroglyph