fix error get local time