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
Usage of date_time_this_year can sometimes choose a date that does not exist. It throws an exception pytz.exceptions.NonExistentTimeError: 2024-03-10 02:11:40.454602
This is because this is the time when clocks changed for daylight savings. Clocks rolled back at 2AM, so no times in that hour exist.
Steps to reproduce
Use date_time_this_year repeatedly, eventually it will pick a bad date.
Expected behavior
The library should not provide datetimes that do not exist.
Actual behavior
The library provided a datetime that does not exist
The text was updated successfully, but these errors were encountered:
Usage of
date_time_this_year
can sometimes choose a date that does not exist. It throws an exceptionpytz.exceptions.NonExistentTimeError: 2024-03-10 02:11:40.454602
This is because this is the time when clocks changed for daylight savings. Clocks rolled back at 2AM, so no times in that hour exist.
Steps to reproduce
date_time_this_year
repeatedly, eventually it will pick a bad date.Expected behavior
The library should not provide datetimes that do not exist.
Actual behavior
The library provided a datetime that does not exist
The text was updated successfully, but these errors were encountered: