changing timestamps from double to integer