Skip to content
Advertisement

Tag: pytz

adding tzinfo for naive datetime cause strange offset?

I’m just trying to add tzinfo for my datetime object (with no specific time). I have date in str format, and timezone in str format. I created this function: all looks fine when I am using tzinfo like: “Etc/GMT-6”: but look at this: Why do I get such a strange values like 03:19, 05:18 when it should be 03:00, -05:00?

Weird timezone issue with pytz

A seven hour and 37 minute offset? This is a little strange, does anyone experience the same issue? In fact I’m getting different behavior between Answer Time zones and offsets change over the years. The default zone name and offset delivered when pytz creates a timezone object are the earliest ones available for that zone, and sometimes they can seem

Advertisement