Make date parsing test work in all timezones

The previous version of this test was locale dependant.