fix a bug caused by timezone