Author Martin.Morrison
Recipients Arfrever, Martin.Morrison, belopolsky, hynek, pitrou, python-dev, swalker, vstinner
Date 2012-05-14.16:50:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1337014216.65.0.583002633276.issue14157@psf.upfronthosting.co.za>
In-reply-to
Content
This solution has some very undesirable properties - namely that Mar 1st is now less than Feb 29th!

It seems like the correct follow up fix would be to adjust the date of the returned struct_time back to 1900. The struct_time object doesn't have the validation issue, so this works fine. This pair of fixes then nicely circumvents the intermediate datetime object's checking, while providing a consistent end result.
History
Date User Action Args
2012-05-14 16:50:16Martin.Morrisonsetrecipients: + Martin.Morrison, belopolsky, pitrou, vstinner, Arfrever, swalker, python-dev, hynek
2012-05-14 16:50:16Martin.Morrisonsetmessageid: <1337014216.65.0.583002633276.issue14157@psf.upfronthosting.co.za>
2012-05-14 16:50:16Martin.Morrisonlinkissue14157 messages
2012-05-14 16:50:15Martin.Morrisoncreate