I would like to display the local time zone as an abbreviation similar to CST, CDT, etc. The QTimeZone class returns "Central Daylight Time" for the abbreviation function. This does not seem to be abbreviated at all. I would have expected the common "CDT" abbreviation instead.

Here is the code:
Qt Code:
  1. QDateTime curtim = QDateTime::currentDateTime();
  2. ui->lblCurTime->setText(curtim.toString("hh:mm:ss"));
  3. mwd->TZ = curtim.timeZone();
  4. QString abbr = mwd->TZ = curtim.timeZone().abbreviation();
  5. ui->lblTZ->setText(abbr);
To copy to clipboard, switch view to plain text mode 

The output looks like 12:30:30 Central Daylight Time

Environment:
OS: Windows 10 32-bit
Qt: v5.7.1 MinGW 5.3.0 32-bit

Note: Same problem exists on Linux Mint 17.3 32-bit

What am I doing wrong?