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!

issue with tzupdater 1.3.3 - argentina DST

807603Feb 27 2008 — edited Feb 27 2008
Hi -

This the code I am running to get Argentina DST info -
String tz = "AGT"
timezone = java.util.TimeZone.getTimeZone(tz);
String tzString = timezone.toString();
System.out.println(tzString);
the out put I see is -
sun.util.calendar.ZoneInfo[id="AGT",offset=-10800000,dstSavings=3600000,useDaylight=true,transitions=118,lastRule=java.util.SimpleTimeZone[id=AGT,offset=-10800000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=9,startDay=1,startDayOfWeek=1,startTime=0,startTimeMode=0,endMode=3,endMonth=2,endDay=15,endDayOfWeek=1,endTime=0,endTimeMode=0]]
If I change tz to "America/Argentina/Buenos_Aires", thsi is the output
sun.util.calendar.ZoneInfo[id="America/Argentina/Buenos_Aires",offset=-10800000,dstSavings=3600000,useDaylight=true,transitions=118,lastRule=java.util.SimpleTimeZone[id=America/Argentina/Buenos_Aires,offset=-10800000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=9,startDay=1,startDayOfWeek=1,startTime=0,startTimeMode=0,endMode=3,endMonth=2,endDay=15,endDayOfWeek=1,endTime=0,endTimeMode=0]]
Argentina DST starts from Dec 30 00:00:00 am. But in both cases, I see that the startMonth is 9 instead of 11. Is this a bug with Sun?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 26 2008
Added on Feb 27 2008
2 comments
103 views