Details
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
- relates to
-
QTBUG-108199 Rework QTimeZone to make QTimeSystem redundant
- Closed
For Gerrit Dashboard: PYSIDE-2298 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
472298,2 | PySide6: Add QTimeZone::Initialization | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
472361,2 | PySide6: Add QTimeZone::Initialization | 6.5 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
473469,1 | PySide6: Add QTimeZone::Initialization | tqtc/dev | pyside/tqtc-pyside-setup | Status: ABANDONED | 0 | 0 |