fix 32 wrap around bug when handling 64 bit time values