fix usage of locale when testing date parsing (fixes #3)