title: Why does conversion between GregorianCalendar and OffsetDateTime fail when evaluating the ZoneInfo part?
body: <p>I am converting an OffsetDateTime to a GregorianCalendar as part of populating values for an outbound web service.  I just thought I'd test the actual conversion.</p>
  
  <p>It is failing and i don't understand why - here is the test method:</p>
  
  <pre><code>@Test
  public void testOffsetDateTimeToGregorianCalendar() {
      // given the current gregorian utc time
      GregorianCalendar expectedGregorianUtcNow = new GregorianCalendar(TimeZone.getTimeZone("UTC"));
      OffsetDateTime expectedUtcOffsetDateTime = OffsetDateTime.from(expectedGregorianUtcNow.toZonedDateTime());
  
      // when converting to a GregorianCalendar
      GregorianCalendar actualGregorianUtcNow = GregorianCalendar.from(expectedUtcOffsetDateTime.toZonedDateTime());
  
      // then make sure we got the correct value
      assertThat(actualGregorianUtcNow, equalTo(expectedGregorianUtcNow));
  }
  </code></pre>
  
  <p>within the equalto, the comparison fails in the evaluation of the gregorianCutover.  Why?  Is this a bug?</p>
  
  <p>it looks like actual has:
  gregorianCutover = -9223372036854775808
  and expected has:
  gregorianCutover = -12219292800000</p>
  
  <p>Everything else is correct as can be seen in the unit test output (gregorianCutover does not appear there):</p>
  
  <pre><code>    java.lang.AssertionError: 
      Expected:&lt;java.util.GregorianCalendar[time=1458667828375,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="UTC",offset=0,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=2,minimalDaysInFirstWeek=4,ERA=1,YEAR=2016,MONTH=2,WEEK_OF_YEAR=12,WEEK_OF_MONTH=4,DAY_OF_MONTH=22,DAY_OF_YEAR=82,DAY_OF_WEEK=3,DAY_OF_WEEK_IN_MONTH=4,AM_PM=1,HOUR=5,HOUR_OF_DAY=17,MINUTE=30,SECOND=28,MILLISECOND=375,ZONE_OFFSET=0,DST_OFFSET=0]&gt;
      but: was &lt;java.util.GregorianCalendar[time=1458667828375,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="UTC",offset=0,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=2,minimalDaysInFirstWeek=4,ERA=1,YEAR=2016,MONTH=2,WEEK_OF_YEAR=12,WEEK_OF_MONTH=4,DAY_OF_MONTH=22,DAY_OF_YEAR=82,DAY_OF_WEEK=3,DAY_OF_WEEK_IN_MONTH=4,AM_PM=1,HOUR=5,HOUR_OF_DAY=17,MINUTE=30,SECOND=28,MILLISECOND=375,ZONE_OFFSET=0,DST_OFFSET=0]&gt;
  </code></pre>
  
  <p>Did i do something wrong?</p>