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 Daniel.O'Connor
Recipients Daniel.O'Connor
Date 2011-08-15.02:31:12
SpamBayes Score 7.966948e-06
Marked as misclassified No
Message-id <1313375473.21.0.352014190788.issue12750@psf.upfronthosting.co.za>
In-reply-to
Content
It isn't possible to add a timezone to a naive datetime object which means that if you are getting them from some place you can't directly control there is no way to set the TZ.

eg pywws' DataStore returns naive datetime's which are in UTC. There is no way to set this and hence strftime seems to think they are in local time.

I can sort of see why you would disallow changing a TZ once set but it doesn't make sense to prevent this for naive DTs.

Also, utcnow() returns a naive DT whereas it would seem to be more sensible to return it with a UTC TZ.
History
Date User Action Args
2011-08-15 02:31:13Daniel.O'Connorsetrecipients: + Daniel.O'Connor
2011-08-15 02:31:13Daniel.O'Connorsetmessageid: <1313375473.21.0.352014190788.issue12750@psf.upfronthosting.co.za>
2011-08-15 02:31:12Daniel.O'Connorlinkissue12750 messages
2011-08-15 02:31:12Daniel.O'Connorcreate