Fix problem with timestamp

I had a problem running the tests so this fixed the timestamp problem I was having. From what I can tell Qt doesn't automatically change the string to a locale so this should be a good fix. Same as the 4.8 fix.