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 r.david.murray
Recipients Daniel.O'Connor, r.david.murray
Date 2011-08-15.14:09:45
SpamBayes Score 0.0012576263
Marked as misclassified No
Message-id <1313417386.16.0.809512171771.issue12750@psf.upfronthosting.co.za>
In-reply-to
Content
In what way does 'replace' not satisfy your need to set the tzinfo?

As for utcnow, we can't change what it returns for backward compatibility reasons, but you can get a non-naive utc datatime by doing datetime.now(timezone.utc).  (I must admit, however, that at least this morning I can't wrap my head around how that works based on the docs :(.
History
Date User Action Args
2011-08-15 14:09:46r.david.murraysetrecipients: + r.david.murray, Daniel.O'Connor
2011-08-15 14:09:46r.david.murraysetmessageid: <1313417386.16.0.809512171771.issue12750@psf.upfronthosting.co.za>
2011-08-15 14:09:45r.david.murraylinkissue12750 messages
2011-08-15 14:09:45r.david.murraycreate