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

(tz) Australian Timezone information incorrect

XMLWordPrintable

      JRE timezone files jre/lib/zi are incorrect for Australian time zone. As per the web site
      http://www.bom.gov.au/climate/averages/tables/dst_times.shtml
      The timezone change should happen for NSW on April 2nd, but java starts doing it after 3/26.

      This problem is not there in 1.5.0_06

      Attached is a sample program that displays this behaviour

      Compile it. Run it as follows

      sh> TZ=Australia/NSW date
      sh> TZ=Australia/NSW java timezone

      Then wait for the clock to roll over to the next minute.

      Then rerun

      sh> TZ=Australia/NSW date
      sh> TZ=Australia/NSW java timezone

      In the second run, you will see isDST as false, but it should be true till 4/2

      You may run the same program with 1.5.0_06 and see that the behaviour is different (and correct).

            peytoia Yuka Kamiya (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: