Useful snippet
In theory, this should deal with timezones, though I am not quite convinced yet...