Simeon Visser added the comment:

Datetimes in local timezones should be created using localize():

>>> zon.localize(datetime.datetime(2015, 2, 1)).isoformat()
'2015-02-01T00:00:00-08:00'

See the two supported methods of creating local datetimes at: 
http://pytz.sourceforge.net

----------
nosy: +simeon.visser

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22994>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to