fix DST offset calculation

Due to a typo the DST offset calculation was not always working.