fix date time issue