adjust timezone when adding date offsets for DST. fixes #5175
refactor for speed