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