changing timestamps from double to integers