Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.1
-
None
-
-
95a74de48 (dev), d450c9420 (6.6), dddc0caab (6.5), 144e10eaf (dev), 61b2a6f58 (dev), 7bbb12b5d (6.6), bda8c5216 (6.6), 85891fb02 (6.5), 2798bf66e (6.5)
-
Foundation Sprint 86
Description
After upgrading from 6.4.2 to 6.5.1 some of our DateTime parsing related tests started failing.
The following code works fine with 6.4.2 but fails with 6.5.1:
#include <QLocale> #include <QDebug> #include <QTime> int main(){ const QLocale usLocale{QLocale::English, QLocale::UnitedStates}; qDebug() << usLocale.timeFormat(QLocale::ShortFormat) << usLocale.toTime("4:43 PM", QLocale::ShortFormat); }
Output:
- 6.4.2: "h:mm AP" QTime("16:43:00.000")
- 6.5.1: "h:mm AP" QTime(Invalid)