Small improvements to time stuff that I've figured out from testing.
Fixes a bunch of timezone transcoding errors.