public static ZonedDateTime zonedDateTimeOf(final Date time) {
        return Optional.ofNullable(time).map(date -> zonedDateTimeOf(Instant.ofEpochMilli(date.getTime()))).orElse(null);
    }
Gets ZonedDateTime for Date.

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