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

QDateTime support for second occurrence at Daylight to Standard transition

    XMLWordPrintable

Details

    Description

      QDateTime has no complete support for DST days.
      Such days, (not everywhere, but e.g. in Germany) have only 23 h or 25 h. If they have 25 hours, they have two times 2 o'clock.
      If you use the UTC time and convert 3 and 4 o'clock on those days to local time, you get 2 o'clock.
      If you convert 2 o'clock local time to UTC you get 4 o'clock. So this it is not correct. If the time would be stored internally as UTC, this could perhaps be solved. For creating applications that collect values of a database that stores it's values in UTC and the UI being in local time, this produces errors.

      The problem goes further if you look at QDateTimeEdit, which does not support this too. There you can enter 2:30 on a 23h day. this time does not exist there.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            johnlayt John Layt
            gerolf Gerolf Reinwardt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes