Tamás Bence Gedai added the comment:

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.

----------
keywords: +patch
Added file: http://bugs.python.org/file41877/julian_date.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23718>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to