public static Date dateOf(final LocalDateTime time) {
        return dateOf(time.toInstant(ZoneOffset.UTC));
    }
Date of local date time.

@param time the time
@return the date
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/DateTimeUtils.java