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
When reviewing this, make sure that you have an updated timezone database. The date of the DST switch for this location was moved ~3 weeks ago so if you try with an outdated database you will not see the DST switch occur on this date.
Issue Description
For this timezone there is a DST switch from UTC-4 to UTC-3 occurring on 2022-09-11 00:00 to 2022-09-11 01:00 local time.
This makes ceil("day") misbehave on the day prior to the DST switch.
ceil uses span, which uses shift. shift relies ondateutil_tz.resolve_imaginary, which always moves imaginary dates forward (per its docs and implementation).
It seems like the correct result should be <Arrow [2022-09-10T23:59:59.999999-04:00]>
It would be nice for resolve_imaginary to accept an optional argument (move_backward?) to move it back instead. It should be possible to detect the shift direction by comparing self and current inside the failed datetime_exists check.
And it also seems easier to rewrite and extend resolve_imaginary inside arrow, rather than make a PR for dateutil.
When reviewing this, make sure that you have an updated timezone database. The date of the DST switch for this location was moved ~3 weeks ago so if you try with an outdated database you will not see the DST switch occur on this date.
Issue Description
For this timezone there is a DST switch from UTC-4 to UTC-3 occurring on 2022-09-11 00:00 to 2022-09-11 01:00 local time.
This makes
ceil("day")
misbehave on the day prior to the DST switch.Expected result:
System Info
The text was updated successfully, but these errors were encountered: