when I create a timezone aware datetime object for \'US/Eastern\'
and print it out, It shows as if my time zone is -4:56
instead of -4:00
<
It is mentioned in the docs that constructing datetime objects doesn't work this way.
You are supposed to do this:
from datetime import datetime
from pytz import timezone
eastern = timezone('US/Eastern')
obj = eastern.localize(datetime(2020, 7, 1, 9, 30))
>>> obj
datetime.datetime(2020, 7, 1, 9, 30, tzinfo=)
>>> print(obj)
2020-07-01 09:30:00-04:00