Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6907174

Confusing ZoneInfo details displayed for Pacific/Fiji TZ

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic, sparc
    • OS:
      generic, solaris_7

      Description

      We see some problems with tztool 1.3.24

      When we patch a JDK 5 or 6 using the tool, and run this test case :
      -------------------------
      import java.util.*;
      public class TZ {
      public static void main(String args[]) {
      TimeZone tz = TimeZone.getTimeZone("Pacific/Fiji");
      System.out.println("tz---"+tz);
      }
      }
      ---------------------------
      We get :
      tz---sun.util.calendar.ZoneInfo[id="Pacific/Fiji",offset=43200000,dstSavings=0,useDaylight=false,transitions=9,lastRule=null]
       >> Basically this does not show the DST for Fiji


      Java itself works fine for other timezones showing correct DST (eg : For Israel it gives):

      tz---sun.util.calendar.ZoneInfo[id="Israel",offset=7200000,dstSavings=3600000,useDaylight=true,transitions=143,lastRule=java.util.SimpleTimeZone[id=Israel,offset=7200000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=2,startDay=26,startDayOfWeek=6,startTime=7200000,startTimeMode=0,endMode=1,endMonth=8,endDay=13,endDayOfWeek=0,endTime=7200000,endTimeMode=0]]

      We should get a similar result for Pacific/Fiji

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              coffeys Sean Coffey
              Reporter:
              kevibrow Kevin Brown
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: