You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inconsistent behaviour between search_dates and parse #504
this test was performed on the 17th Feb 2019. "On Monday" refers to then next Monday (18th Feb). parse seems to be correct -> datetime(2019, 2, 18, 7, 0), but search_dates interprets the 7 as a month.
>>> dateparser.parse("on Monday at 7am", settings={'PREFER_DATES_FROM': 'future'})
datetime.datetime(2019, 2, 18, 7, 0)
>>> search_dates("on Monday at 7am", settings={'PREFER_DATES_FROM': 'future'})
[('on Monday at 7am', datetime.datetime(2019, 7, 17, 0, 0))]
If I use 7:00 it's working fine. 7, 7am or 7 am are all inconsistent.
Activity