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

Rereport: Add full timezone support in QDateTime

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • P3: Somewhat important
    • Some future release
    • 4.4.1, 4.4.2, 4.4.3, 4.5.0, 4.5.1, 4.5.2, 4.5.3, 4.6.0, 4.6.1, 4.6.2
    • Core: Date/Time
    • None

    Description

      This is basically a rereport of QTBUG-2654 as it was closed without a real solution. Solving this bug would almost certainly close QTBUG-71 too.

      Currently you can only convert a QDateTime (or the QDate and QTime objects for that matter) object to local time or UTC. And thereby calculate the offset on the current system. There is no support for creating a QDateTime object from a string with time zone information, there is no way to get the time zone information back again. Also you can't convert between a textual representation of a time zone (say CET) and its offset (+0100).

      Therefore I kindly request to add real time zone support like it is offered by the KDE libraries (e.g. through the KDateTime and KTimeZone/[KTimeZones|http://api.kde.org/4.x-api/kdelibs-apidocs/kdecore/html/classKTimeZones.html] classes). The most important parts are already available in QTopia/[Qt Extended|http://doc.trolltech.com/qtextended4.4/qtimezone.html].

      Attachments

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

        Activity

          People

            earthdomain Earth Domain (Inactive)
            cùran Kai Wb.
            Votes:
            6 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes