fixed date-time generator bug