Fix timezone offset calculation