fixed bug caused by timezone offset