private/runtime/Conversions/Instances/DateTimeOffsetConverter.cs

using System;

namespace Carbon.Json.Converters
{
    internal sealed class DateTimeOffsetConverter : JsonConverter<DateTimeOffset>
    {
        public override JsonNode ToJson(DateTimeOffset value) => new JsonDate(value);

        public override DateTimeOffset FromJson(JsonNode node) => (DateTimeOffset)node;
    }
}