fix time to local time