- 
    Bug 
- 
    Resolution: Fixed
- 
    P3: Somewhat important 
- 
    5.14.0
- 
    None
- 
        
- 
        dea91dbb5 (dev), b3a00a38a (dev), 1d725c009 (6.8)
As stated on https://doc.qt.io/qt-5/qtimezone.html#NameType-enum - shortName should return the short form of the time zone name, usually an abbreviation, e.g. "CET".
I've tested this on both Mac & Win:
- on OSX it returns "GMT+offset"
- on Windows it returns the LongName as a timeZone, never its shortName abbreviation. e.g. "Central European Time"
e.g.
QDateTime currentDateTime = QDateTime::currentDateTime(); qDebug() << currentDateTime.timeZone().displayName(currentDateTime,QTimeZone::DefaultName) << currentDateTime.timeZone().displayName(currentDateTime,QTimeZone::LongName) << currentDateTime.timeZone().displayName(currentDateTime,QTimeZone::ShortName) << currentDateTime.timeZone().displayName(currentDateTime,QTimeZone::OffsetName);
on MacOs returns:
"Central European Summer Time" "Central European Summer Time" "GMT+2" "UTC+02:00"
& on Windows the same code returns:
"Central Europe Daylight Time" "Central Europe Daylight Time" "Central Europe Daylight Time" "UTC+02:00"
- relates to
- 
                    QTBUG-32759 QDateTime - Add Windows support for timeZoneAbbreviation() -         
- Closed
 
-         
- 
                    QTBUG-115158 Time zone names and abbreviations are not localised -         
- Closed
 
-         
- 
                     QTBUG-112909
        Support all CLDR's various ways of naming time-zones QTBUG-112909
        Support all CLDR's various ways of naming time-zones-         
- Open
 
-         
- 
                    QTBUG-102187 QTimeZone on Windows (w/o ICU) does not recognize some time zones reported by C++20 -         
- Closed
 
-