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