--- _strptime.py.orig 2014-12-30 15:47:05.069835336 -0500 +++ _strptime.py 2014-12-30 15:47:21.509139500 -0500 @@ -441,7 +441,7 @@ # Cannot pre-calculate datetime_date() since can change in Julian # calculation and thus could have different value for the day of the week # calculation. - if julian == -1: + if julian == -1 and week_of_year != 0: # Need to add 1 to result since first day of the year is 1, not 0. julian = datetime_date(year, month, day).toordinal() - \ datetime_date(year, 1, 1).toordinal() + 1