Fix bug with dst offsets

As we were setting the 'local time', it required the given timestamp to be in
the same DST period as when the code was executed.
At first I was thinking this seems too imprecise for a test, but I guess the previous assertions handle the precision.