Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2298

QTimeZone.UTC and QTimeZone.LocalTime are absent in QTimeZone

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.5.1, 6.6.0
    • 6.5.0
    • PySide
    • None
    • Linux/X11
    • fab71f285 (dev), d92d1e8c0 (6.5)

    Description

      PySide 6.5.0 introduced new signature for method QDateTime.fromSecsSinceEpoch(qint64 secs, const QTimeZone &timeZone) that uses QTimeZone instead of spec now.

      It is assumed that QTimeZone may be intialized with help of QTimeZone::Initialization but it appears that these values are not available in python:

      >>> from PySide6.QtCore import QTimeZone
      >>> print(QTimeZone.UTC)
      
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
      AttributeError: type object 'PySide6.QtCore.QTimeZone' has no attribute 'UTC'. Did you mean: 'utc'?
      

      Attachments

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              starterkit Ivan Ivanov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes