static OffsetDateTime readExternal(DataInput in) throws IOException {

    LocalDateTime dateTime = LocalDateTime.readExternal(in);
    ZoneOffset offset = ZoneOffset.readExternal(in);
    return OffsetDateTime.of(dateTime, offset);
  }