@Override
            public ZonedDateTime decode(final BsonReader reader, final DecoderContext decoderContext) {
                val stamp = reader.readTimestamp();
                val dt = new Date(stamp.getTime());
                return DateTimeUtils.zonedDateTimeOf(dt);
            }
The type Zoned date time codec provider.
support/cas-server-support-mongo-core/src/main/java/org/apereo/cas/mongo/BaseConverters.java