summaryrefslogtreecommitdiffstats
path: root/src/corelib/time
diff options
context:
space:
mode:
authorMarcel Krems <m.krems@software-vision.eu>2020-08-27 18:43:57 +0200
committerMarcel Krems <m.krems@software-vision.eu>2020-09-09 06:00:28 +0200
commit348b86d976e1b433729114c3cdb29b7397a0a3d4 (patch)
treea23642ba8f6fb96b254d83e5b2c5cbdfdc4a6e5a /src/corelib/time
parentd263ab6af5bd264217cb0beb389586163c5a8348 (diff)
Fix failures in tst_qdatetime under non-english locales
QDateTime::toString uses the C locale since 5ba66c5622e9e0da87a5037399b375d7e8cee554 So don't expect locale specific day- and month-names. Task-number: QTBUG-80441 Change-Id: I08f53b6b33ed9e7eaaa58df4ca6a966c4ba9ef24 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/time')
-rw-r--r--src/corelib/time/qdatetime.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/corelib/time/qdatetime.cpp b/src/corelib/time/qdatetime.cpp
index 167db2bb6a..f5d0cad42f 100644
--- a/src/corelib/time/qdatetime.cpp
+++ b/src/corelib/time/qdatetime.cpp
@@ -4019,8 +4019,7 @@ QString QDateTime::toString(Qt::DateFormat format) const
If the datetime is invalid, an empty string will be returned.
\note If localized month and day names are desired, please switch to using
- QLocale::system().toString() as QDateTime methods shall change to use
- English (C locale) names at Qt 6.
+ QLocale::system().toString() as QDateTime methods use English (C locale) names.
\sa fromString(), QDate::toString(), QTime::toString(), QLocale::toString()
*/