public static OffSetDatetimeSerializer RegisterSerializer()
        {
            OffSetDatetimeSerializer serializer = new OffSetDatetimeSerializer();

            BsonSerializer.RegisterSerializer(typeof(OffsetDateTime), serializer);
            return(serializer);
        }
        public static void RegisterAll(IDateTimeZoneProvider provider)
        {
            ZonedDateTimeSerializer.RegisterSerializer(provider);

            LocalDateTimeSerializer.RegisterSerializer();
            LocalDateSerializer.RegisterSerializer();
            LocalTimeSerializer.RegisterSerializer();

            OffSetDatetimeSerializer.RegisterSerializer();
            OffSetTimeSerializer.RegisterSerializer();
            OffSetDateSerializer.RegisterSerializer();

            PeriodSerializer.RegisterSerializer();
            DurationSerializer.RegisterSerializer();
        }