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 beng94
Recipients belopolsky, beng94, lemburg, serhiy.storchaka
Date 2016-02-09.22:14:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1455056054.4.0.767770111745.issue23718@psf.upfronthosting.co.za>
In-reply-to
Content
I made a patch, that solves this issue.

The problem was that there wasn't any Sunday (%w = 0) on the 0th week in 2015. 2015 started on Thursday, therefore the first Sunday was on 2014.12.28.

julian variable is used to set the tm_yday, which was a minus value, as the given date was not in the same year.
History
Date User Action Args
2016-02-09 22:14:14beng94setrecipients: + beng94, lemburg, belopolsky, serhiy.storchaka
2016-02-09 22:14:14beng94setmessageid: <1455056054.4.0.767770111745.issue23718@psf.upfronthosting.co.za>
2016-02-09 22:14:14beng94linkissue23718 messages
2016-02-09 22:14:14beng94create