Fixes regarding UTC offset
Function to covert to a deterministic version