fixing error in timezone calculation