Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-44614

Date objects have incorrect timezone information in certain timezones.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 5.4.0
    • None
    • Linux pc 3.19.0-1-ARCH #1 SMP PREEMPT Mon Feb 9 07:08:20 CET 2015 x86_64 GNU/Linux

    Description

      Reproducable with tzdata 2015a, I have not checked other versions of tzdata.

      Set timezone to America/Santiago.

      In Qt Quick 2.0 enviroment, run this test:

      console.log(new Date().getTimezoneOffset());
      console.log(new Date());
      

      Result:

      120
      Mon Feb 23 13:45:23 2015 GMT-0200
      

      Expected result (correct in v8, QtWebKit, QtQuick 1.0):

      180
      Mon Feb 23 2015 13:45:23 GMT-0300 (CLST)
      

      The local time is correct, but the timezone information is not correct.

      Attachments

        1. timezone.pro
          0.1 kB
        2. Santiago.zdump.txt
          27 kB
        3. main.cpp
          0.7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            shausman Simon Hausmann
            chalker Сковорода Никита
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes