working utc timestamp conversion function