Fix datetime export format

Without these changes I was getting one hour early times.