For some reason which I haven\'t been able to figure out yet, from the the following code:
>>> from pytz import timezone
>>> timezone(\'Ame
Unless your local timezone has a fixed UTC offset then it is pointless to talk about its specific value without providing a specific date/time.
If you provide the time e.g., the current time then you'll see that pytz
produces the expected UTC offset:
>>> from datetime import datetime
>>> import pytz
>>> datetime.now(pytz.timezone('America/Chicago')).strftime('%Z%z')
'CST-0600'
See
If you don't provide a specific date/time then pytz
may return an arbitrary utc offset from the set of available utc offsets for the given timezone. The recent pytz
versions return utc offsets that correspond to the earliest time (LMT as a rule) but you should not rely on it. You and your friend may use different pytz versions that may explain the difference in results.