Fix a testing error when using python3 on certain dates

Date conversion was broken in python3 for dates with
leading zeroes in both month and day.
10 jobs for date-test-error in 6 minutes and 49 seconds (queued for 2 seconds)