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

QDateTime::toTimeZone doc's code snippet calls deprecated ::toTimeSpec

XMLWordPrintable

    • All
    • 1
    • 8c943392a (dev), b546ab5af (6.9), d30642aea (6.8), c0b19de6e (dev)
    • Foundation Sprint 128

      https://doc.qt.io/qt-6.8/qdatetime.html#toTimeZone shows a code snippet (copied from the snippet above it) that calls the deprecated QDateTime::toTimeSpec instead of QDateTime::toTimeZone.  This is outdated and doesn't compile as written with the QTimeZone::UTC argument.

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

            Eddy Edward Welbourne
            barbicels- R Brown
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: