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