Fix a bug with timezones and tests

The datetime crossed a date boundary in my timezone (+10 GMT), causing tests to always fail in the middle of the day.