Fix datetime calculation with timezones.