Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
5.7.1, 6.5
-
None
-
-
e813acbb0 (dev), dea91dbb5 (dev)
Description
There is also such a problem in the 6.5 version of Qt
//sample code
QLocale locale(QLocale::English, QLocale::UnitedStates);
QDateTime qt = locale.toDateTime("Mon, 05 Jun 2023 08:42:09", "ddd, dd MMM yyyy hh:mm:ss");
//In the Chinese system, The following line of code will output "Mon, 05 Jun 2023 08:42:09 中国标准时间"
qDebug()<<locale.toString(qt,"ddd, dd MMM yyyy hh:mm:ss t");
Attachments
Issue Links
- resulted from
-
QTBUG-115158 Time zone names and abbreviations are not localised
- Closed
For Gerrit Dashboard: QTBUG-114914 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
544274,16 | Rework QTZP::displayName() to use locale and data() more | dev | qt/qtbase | Status: MERGED | +2 | 0 |
544309,37 | Implement feature timezone_locale's CLDR half | dev | qt/qtbase | Status: MERGED | +2 | 0 |