diff options
author | Andreas Buhr <andreas.buhr@qt.io> | 2020-09-21 14:52:58 +0200 |
---|---|---|
committer | Andreas Buhr <andreas.buhr@qt.io> | 2020-09-23 17:33:39 +0200 |
commit | bf548091daf59972d91db5b6ff407c9c9afe8c36 (patch) | |
tree | b30c9c9c5b168aff187d0b6f707a42d2c38cac4e /tests | |
parent | 079cf5511150cd17de1573c0fc9fedb8db25b3ef (diff) |
QDateTime change documentation to reflect usage of C locale
In the past, string formatting and parsing was done in the users
locale. Now, the C locale is consistently used in QDate(Time) and
localized functions are offered in QLocale. This patch reflects
this change in the documentation.
Change-Id: I81afda9063fa232d06841d63f69e19b49f8083f3
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/corelib/time/qtime/tst_qtime.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/corelib/time/qtime/tst_qtime.cpp b/tests/auto/corelib/time/qtime/tst_qtime.cpp index c06e7c37a4..9c3644d8da 100644 --- a/tests/auto/corelib/time/qtime/tst_qtime.cpp +++ b/tests/auto/corelib/time/qtime/tst_qtime.cpp @@ -754,6 +754,7 @@ void tst_QTime::toStringFormat_data() QTest::newRow( "am-pm" ) << QTime(10,12,34,45) << QString("hh:ss ap") << QString("10:34 am"); QTest::newRow( "AM-PM" ) << QTime(22,12,34,45) << QString("hh:zzz AP") << QString("10:045 PM"); QTest::newRow( "invalid" ) << QTime(230,230,230,230) << QString("hh:mm:ss") << QString(); + QTest::newRow( "empty format" ) << QTime(4,5,6,6) << QString("") << QString(""); } void tst_QTime::toStringFormat() |