public static Date dateOf(final ChronoZonedDateTime time) {
        return dateOf(time.toInstant());
    }
Gets Date for ZonedDateTime.

@param time Time object to be converted.
@return Date representing time
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/DateTimeUtils.java