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
Fix date_parser with prefer_month_of_year wrong results
Fix two problems
1. Parser would use current month even if prefer_month_of_year was not
current when relative_base was not none
2. Parser would use current month to derive 'what is the last day of
this month' - for example, with prefer_month=last and
prefer_day=past, but current_month=april, it would return december
30th, because it would use april to find that the last day was the
30th, when it should use the month.
Additionally, add a test to test_date_parser that uses prefer_month
0 commit comments