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 dgorley
Recipients dgorley
Date 2014-11-10.22:01:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1415656891.03.0.356837597091.issue22840@psf.upfronthosting.co.za>
In-reply-to
Content
strptime() is returning the wrong date if I try to parse today's date (2014-11-10) as a string with no separators, and if I ask strpdate() to look for nonexistent hour and minute fields.

>>> datetime.datetime.strptime('20141110', '%Y%m%d').isoformat()
'2014-11-10T00:00:00'
>>> datetime.datetime.strptime('20141110', '%Y%m%d%H%M').isoformat()
'2014-01-01T01:00:00'
History
Date User Action Args
2014-11-10 22:01:31dgorleysetrecipients: + dgorley
2014-11-10 22:01:31dgorleysetmessageid: <1415656891.03.0.356837597091.issue22840@psf.upfronthosting.co.za>
2014-11-10 22:01:30dgorleylinkissue22840 messages
2014-11-10 22:01:30dgorleycreate