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 belopolsky
Recipients belopolsky, mirkovogt, r.david.murray
Date 2015-01-27.18:56:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1422384979.72.0.439774119778.issue23332@psf.upfronthosting.co.za>
In-reply-to
Content
> I highly recommend always specifying the timezone and would consider behaving otherwise as a bug.

I agree, and the datetime module lets you do that already:

>>> dt = datetime.now(timezone.utc)
>>> dt.isoformat()
'2015-01-27T18:53:40.380075+00:00'

or if you prefer local timezone,

>>> dt.astimezone().isoformat()
'2015-01-27T13:53:40.380075-05:00'
History
Date User Action Args
2015-01-27 18:56:19belopolskysetrecipients: + belopolsky, r.david.murray, mirkovogt
2015-01-27 18:56:19belopolskysetmessageid: <1422384979.72.0.439774119778.issue23332@psf.upfronthosting.co.za>
2015-01-27 18:56:19belopolskylinkissue23332 messages
2015-01-27 18:56:19belopolskycreate