It's the same for my when test this.
Rather than try to figure what's going on,i would use Pendulum .
It provides drop-in replacements for datetime,pytz...ect (or inherit from them if needed).
Timezone is a really strong part that's done right.
Rather than try to figure what's going on,i would use Pendulum .
It provides drop-in replacements for datetime,pytz...ect (or inherit from them if needed).
Timezone is a really strong part that's done right.
>>> import pendulum >>> >>> # Now not daylight savings time >>> dt = pendulum.datetime(2019, 11, 15, tz='Europe/Berlin') >>> dt.is_dst() False >>> # Go back to when it was daylight savings time(Norway) >>> dt = pendulum.datetime(2019, 7, 15, tz='Europe/Berlin') >>> dt.is_dst() True