static OffsetDate readExternal(DataInput in) throws IOException {

    LocalDate date = LocalDate.readExternal(in);
    ZoneOffset offset = ZoneOffset.readExternal(in);
    return OffsetDate.of(date, offset);
  }