@Override
        public Date convert(
            @Nonnull final ZonedDateTime source) {
            return Optional.of(source).map(zonedDateTime -> Date.from(zonedDateTime.toInstant())).orElse(null);
        }
The type Zoned date time to date converter.
support/cas-server-support-mongo-core/src/main/java/org/apereo/cas/mongo/BaseConverters.java