I am getting different results for day light saving start and end.
ZoneId zone = ZoneId.of("Australia/Melbourne");
System.out.println(ZonedDateTime.of(2019, 04, 07, 3, 0, 0, 0, zone)); // statement-1
System.out.println(ZonedDateTime.of(2019, 10, 06, 2, 0, 0, 0, zone)); // statement-2
For the first half of day light saving for the year 2019, I am getting result as (2019-04-07T03:00**+10:00**[Australia/Melbourne]). Java is reducing 1 hour to offset value. But for second half of day light saving (statement-2=> 2019-10-06T03:00+11:00[Australia/Melbourne]) , java is adding 1 hour to time and +1 to offset value.
As per my understanding java should increase 1 hour to time and +1 to offset value (end of DST) and while start of DST then java should decrease 1 hour from time and 1 from offset value.
Please help me to get clarification regarding the differences. Is it java 8 issue or my understanding is incorrect ?