This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author simeon.visser
Recipients belopolsky, santhoshch, simeon.visser
Date 2014-12-04.10:59:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1417690750.65.0.96713430891.issue22994@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2014-12-04 10:59:10simeon.vissersetrecipients: + simeon.visser, belopolsky, santhoshch
2014-12-04 10:59:10simeon.vissersetmessageid: <1417690750.65.0.96713430891.issue22994@psf.upfronthosting.co.za>
2014-12-04 10:59:10simeon.visserlinkissue22994 messages
2014-12-04 10:59:10simeon.vissercreate