-
Notifications
You must be signed in to change notification settings - Fork 72
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
29 February Issue. #51
Comments
Can you enable debug logging and attach the log? (see Troubleshooting in readme): |
How i fix it in my case was by adding: Debug: ` [2020-01-08 12:59:04,543] fb2cal INFO (get_async_birthdays) Processing birthdays for month February. [2020-01-08 12:59:18,275] fb2cal ERROR (parse_birthday_day_month) Failed to parse birthday day/month. Parse failed with tooltip_content: "(2/29)", locale: "en_US". Day name "2/29" is not in the offset dict {'thursday': 1, 'friday': 2, 'saturday': 3, 'sunday': 4, 'monday': 5, 'tuesday': 6, 'wednesday': 7} |
Yeah I think that is a good solution. To hardcode the year as a year which contains the 29th of Feb. |
When the birthday date is the 29 of February the toll will fail with a fail to parse message
[2020-01-05 21:20:36,777] fb2cal ERROR (parse_birthday_day_month) Failed to parse birthday day/month. Parse failed with tooltip_content: " (2/29)", locale: "en_US". Day name "2/29" is not in the offset dict {'monday': 1, 'tuesday': 2, 'wednesday': 3, 'thursday': 4, 'friday': 5, 'saturday': 6, 'sunday': 7}
I'm no good with Python to help you out with this but take a look at
https://stackoverflow.com/questions/44327109/sorting-a-list-of-string-dates-with-no-year-but-with-29th-feb
Keep the good work!
The text was updated successfully, but these errors were encountered: