fix date time problem