Test by date to avoid offset errors.
The time isn't used within the test anyway, so it should be just as accurate up to one day.