diff options
author | Marcel Krems <m.krems@software-vision.eu> | 2020-08-27 18:43:57 +0200 |
---|---|---|
committer | Marcel Krems <m.krems@software-vision.eu> | 2020-09-09 06:00:28 +0200 |
commit | 348b86d976e1b433729114c3cdb29b7397a0a3d4 (patch) | |
tree | a23642ba8f6fb96b254d83e5b2c5cbdfdc4a6e5a /src/corelib | |
parent | d263ab6af5bd264217cb0beb389586163c5a8348 (diff) | |
download | qtbase-348b86d976e1b433729114c3cdb29b7397a0a3d4.tar.gz |
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')
-rw-r--r-- | src/corelib/time/qdatetime.cpp | 3 |
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() */ |