Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.6.2
-
None
-
-
3e426182e (dev), 23b69855c (6.7), 004da7d2b (tqtc/lts-6.5)
-
Foundation Sprint 104, Foundation Sprint 105, Foundation Sprint 106
Description
const QLocale locale(QLocale::Language::C); QString tst = locale.toString(QDateTime(QDate(2024, 3, 20), QTime(16, 17, 0)), "ddd, dd MMM yy HH:mm:ss"); QDateTime tst2 = locale.toDateTime(tst, "ddd, dd MMM yy HH:mm:ss"); QString tst3 = tst2.toString("ddd, dd MMM yy HH:mm:ss");
The above variable "tst2" is INVALID and "tst3" is EMPTY but it should not be. It should contain date/time and string representation of original datetime from "tst".