Details
-
Bug
-
Resolution: Fixed
-
P4: Low
-
6.8.2
-
-
3
-
f68240616 (dev), 0191826f4 (6.9), c7ceae561 (6.8)
-
Foundation Sprint 128
Description
Qt seems does not recognize timezone with daylight savings offsets such as
the time zone offset for Sydney is: AEST-10AEDT,M10.1.0,M4.1.0/3. and Qt does not seems to recognize this one.
On the other hand, standard time zone offsets like Asia/Shanghai CST-8 can be recognized without any issues.
Following code returns empty for qDebug()<<"Qt Timezone Id="<<systemTime.id();
int main(int argc, char *argv[]) { qputenv("TZ"," AEST-10AEDT,M10.1.0,M4.1.0/3"); QApplication a(argc, argv); QTimeZone systemTime= QTimeZone::systemTimeZone(); qDebug()<<"System Timezone ID="<<systemTime.systemTimeZoneId(); qDebug()<<"Qt Timezone Id="<<systemTime.id(); return a.exec(); }
Attachments
Issue Links
- relates to
-
QTBUG-112006 Separate out POSIX zone descriptors in QTimeZone backends
-
- Reported
-