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

No Russian time zones mapping for Windows

    XMLWordPrintable

Details

    • b36
    • x86_64
    • windows_7

    Backports

      Description

        A DESCRIPTION OF THE REQUEST :
        There is no timesones mapping for newly added Russian Timezones in JDK for Windows. New timezones key value in Windows registry (TimeZoneKeyName) should looks like "Russian Time Zone 1..11" after 26 october 2014. You can read about this here:
        http://blogs.technet.com/b/dst2007/archive/2014/08/22/announcement-update-for-russian-time-zone-changes.aspx
        But there is no record for this key in file %JAVA_HOME%/jre/lib/tzmappings.
        JDK was patched with Java Time Zone Updater Tool tzupdater-1_4_7-2014g.zip


        JUSTIFICATION :
        Wrong time possible in java-applications after 26.oractober.2014

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        Current java's timezone should be mapped to OS timesone.

        ACTUAL -
        For date 27.october.2014 and "Russian Timezone 3" selected in Windows result of test case is "timezoneAmerica/Bahia" but shoul be "Europe\Samara"
         

        ---------- BEGIN SOURCE ----------
        TimeZone tz = TimeZone.getTimeZone(java.util.TimeZone.getDefault().getID());
                  StringBuilder timeZoneStr = new StringBuilder();
                  timeZoneStr.append("Current timzone: ").append("( GMT ").append(tz.getRawOffset() / (60 * 60 * 1000)).append(" ) ").append(tz.getDisplayName());
                  tzList.add(timeZoneStr.toString());
                  System.out.println(timeZoneStr.toString());


        ---------- END SOURCE ----------

        CUSTOMER SUBMITTED WORKAROUND :
        manual editing of the file %JAVA_HOME%/jre/lib/tzmappings

        Attachments

          Issue Links

            Activity

              People

                okutsu Masayoshi Okutsu
                webbuggrp Webbug Group
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: