Explicitly setting locale for dateformat.

Required for unit test to succeed on machines with non-english locale.