From bf548091daf59972d91db5b6ff407c9c9afe8c36 Mon Sep 17 00:00:00 2001 From: Andreas Buhr Date: Mon, 21 Sep 2020 14:52:58 +0200 Subject: 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 --- tests/auto/corelib/time/qtime/tst_qtime.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') 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() -- cgit v1.2.3