change timestamps from double to integer