Repository navigation
Replies: 1 comment
|
The starting wall time does not exist, so the UTC conversion and the imaginary-time adjustment can choose different valid replacements. I reproduced your results with Arrow 1.2.3: the input carries If you want the forward adjustment explicitly, you can do it before converting: import arrow
from dateutil import tz
imagine = arrow.get(2022, 3, 27, 2, 30, tzinfo='Europe/Berlin')
resolved = arrow.get(tz.resolve_imaginary(imagine.datetime))
print(resolved)
# 2022-03-27T03:30:00+02:00I checked this on Arrow 1.2.3 and 1.4.0. In 1.4.0, the string timezone uses The |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Lets say i have a imaginary time, like
2022-03-27T02:30:00in theEurope/Berlintimezone (due to DST change):When i convert this to UTC and back, i get the following:
but when i shift the time back and forth a bit, i get a different result:
This is also inconsistent from pytz
All reactions