fix DST offset calculation