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

[WebView] getTimezoneOffset() of a ISO strings returns a wrong value

    Details

    • Subcomponent:
      web

      Backports

        Description

        Since java 8u60 we have the problem that the wrong date will be shown Kendo UI components like the datepicker.

        We think that the following bugs are related with the problem that getTimezoneOffset() of an ISO string returns a wrong value.

        new Date('2015-06-09T22:00:00.000Z').getTimezoneOffset()
        should return -120 in case of the following timezone
             (UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna
        but it returns 1320

        I also noticed that for the following time zones:
        (UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague
        (UTC+01:00) Brussels, Copenhagen, Madrid, Paris
        (UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb


        In addition we wrote a short page which gives you the possibilty to reproduce that error.

        Open the following page to reproduce the following two bugs
        http://output.jsbin.com/gokoxo

        Bug 1 - Datepicker shows the wrong date
        1. click on the calendar button and select a date like the 6/10/2015
        2. now you should see that the textfield stores the wrong date 6/09/2015

        Bug 2 - Datepicker shows the the same day number for nearly the whole month. (see https://drive.google.com/file/d/0B7P_rknS1TWxSExTTHNPXzBGYVE/view?usp=sharing)
        1. do the same (step 1 and 2) as for bug 1
        2. change the month to september


        These are major bugs for us and we have to told our customers that they should avoid Java 8u60 if these bugs still exist in the release version.

        Thanks in advance!
        Best Regards,
        Steve

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ant Anton Tarasov
                  Reporter:
                  duke J. Duke (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported: