Fixed endian issue on timestamp