Refactor local to UTC conversion