From e9e0862051076ecaacd031eec09da5384739d741 Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Wed, 3 Nov 2021 16:48:41 +0100 Subject: Correct and clarify some comments Change-Id: I011b04cf0dccea51c00c597c8dff74d574fe36ad Reviewed-by: Thiago Macieira --- tests/auto/corelib/time/qtimezone/tst_qtimezone.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/auto/corelib') diff --git a/tests/auto/corelib/time/qtimezone/tst_qtimezone.cpp b/tests/auto/corelib/time/qtimezone/tst_qtimezone.cpp index 0f852418af..e21209390f 100644 --- a/tests/auto/corelib/time/qtimezone/tst_qtimezone.cpp +++ b/tests/auto/corelib/time/qtimezone/tst_qtimezone.cpp @@ -1301,7 +1301,7 @@ void tst_QTimeZone::tzTest() QCOMPARE(dat.standardTimeOffset, 3600); QCOMPARE(dat.daylightTimeOffset, 0); - // Test TZ timezone vs UTC timezone for fractionary negative offset + // Test TZ timezone vs UTC timezone for non-whole-hour negative offset: QTzTimeZonePrivate tztz1("America/Caracas"); QUtcTimeZonePrivate tzutc1("UTC-04:30"); QVERIFY(tztz1.isValid()); @@ -1310,7 +1310,7 @@ void tst_QTimeZone::tzTest() QTzTimeZonePrivate::Data datautc1 = tzutc1.data(std); QCOMPARE(datatz1.offsetFromUtc, datautc1.offsetFromUtc); - // Test TZ timezone vs UTC timezone for fractionary positive offset + // Test TZ timezone vs UTC timezone for non-whole-hour positive offset: QTzTimeZonePrivate tztz2("Asia/Calcutta"); QUtcTimeZonePrivate tzutc2("UTC+05:30"); QVERIFY(tztz2.isValid()); @@ -1319,7 +1319,7 @@ void tst_QTimeZone::tzTest() QTzTimeZonePrivate::Data datautc2 = tzutc2.data(std); QCOMPARE(datatz2.offsetFromUtc, datautc2.offsetFromUtc); - // Test a timezone with a name that isn't all letters + // Test a timezone with an abbreviation that isn't all letters: QTzTimeZonePrivate tzBarnaul("Asia/Barnaul"); if (tzBarnaul.isValid()) { QCOMPARE(tzBarnaul.data(std).abbreviation, QString("+07")); -- cgit v1.2.3