change timestamps from int to long