fix chat history time problem