fix record localtime