Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

TimeZone Rule for Australia/Melbourne

807589Nov 14 2008 — edited Nov 14 2008
Daylight savings rules for “Australia/Melbourne” Time zone in jdk are not same as OS rules.

TimeZone zone = TimeZone.getTimeZone("Australia/Melbourne")
System.out.println(zone);


Output:
sun.util.calendar.ZoneInfo[id="Australia/Melbourne",offset=36000000,dstSavings=3600000,useDaylight=true,transitions=142,
lastRule=java.util.SimpleTimeZone
[id=Australia/Melbourne,offset=36000000,dstSavings=3600000,
useDaylight=true,
startYear=0,startMode=2,startMonth=9,startDay=-1,startDayOfWeek=1,startTime=7200000,startTimeMode=1,
endMode=2,endMonth=2,endDay=-1,endDayOfWeek=1,endTime=7200000,endTimeMode=1]]





From the above output for Australia/Melbourne DST End’s on last Sunday of March. But in fact DST end date should be First Sunday of April

Australia/Melbourne
DST END: 05-Apr, 03:00h
DST START: 04-Oct, 02:00h

Is there any patch available to correct these timezone settings?

Edited by: Palli2008 on Nov 14, 2008 1:37 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 12 2008
Added on Nov 14 2008
12 comments
882 views