Python DateTime Удалить часовой пояс
# dt_tz is a datetime.datetime object
dt = dt_tz.replace(tzinfo=None)
Fantastic Ferret
# dt_tz is a datetime.datetime object
dt = dt_tz.replace(tzinfo=None)
>>> import datetime
>>> import pytz
>>> dt = datetime.datetime.now()
>>> dt
datetime.datetime(2012, 6, 8, 9, 27, 32, 601000)
>>> dt_tz = pytz.utc.localize(dt)
>>> dt_tz
datetime.datetime(2012, 6, 8, 9, 27, 32, 601000, tzinfo=<UTC>)