Fixed an issue with timezone calculation.