fix date time parsing bug