-
Notifications
You must be signed in to change notification settings - Fork 470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Friday" with preference set to future yields a Tuesday in the past. #1243
Comments
in other news, when I parse "Nov 1" I now get "Sat Nov 1" which is also incorrect since Nov 1 is a friday this year. |
doesn't seem like the library is actively maintained, so for anyone running into this issue in the future, this worked for me:
|
This seems to be caused by a small bug in the "absolute-time" parser: dateparser/dateparser/parser.py Line 493 in 47acb88
the delta is correctly applied. Applying the delta can change the month, but that change is reset using the relative base right afterwards: dateparser/dateparser/parser.py Line 621 in 47acb88
see: dateparser/dateparser/utils/__init__.py Line 193 in 47acb88
|
I'm also seeing something that I think is related.
|
I called this method earlier today, before UTC time (I'm -4) was past midnight and I got Oct 1 instead, also a Tuesday. Checking the year reveals that it's indeed Oct 2024 which is in the past.
dateparser==1.2.0
The text was updated successfully, but these errors were encountered: