diff options
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/addon/AddonFunctions.cpp | 2 | ||||
| -rw-r--r-- | src/modules/theme/SaveThemeDialog.cpp | 4 | ||||
| -rw-r--r-- | src/modules/theme/ThemeFunctions.cpp | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/src/modules/addon/AddonFunctions.cpp b/src/modules/addon/AddonFunctions.cpp index 008506684..cf5d2577f 100644 --- a/src/modules/addon/AddonFunctions.cpp +++ b/src/modules/addon/AddonFunctions.cpp @@ -300,7 +300,7 @@ namespace AddonFunctions info.szMinVersion = KVI_VERSION; QString szTmp; - szTmp = QDateTime::currentDateTime().toString(); + szTmp = QDateTime::currentDateTime().toString(Qt::ISODate); KviPackageWriter pw; pw.addInfoField("PackageType","AddonPack"); diff --git a/src/modules/theme/SaveThemeDialog.cpp b/src/modules/theme/SaveThemeDialog.cpp index 09e748510..9a1bb93b3 100644 --- a/src/modules/theme/SaveThemeDialog.cpp +++ b/src/modules/theme/SaveThemeDialog.cpp @@ -262,9 +262,7 @@ bool SaveThemeDialog::saveTheme() sto.setAuthor(m_pAuthorNameEdit->text()); sto.setDescription(m_pThemeDescriptionEdit->toPlainText()); - // this is the equivalent to an empty date.toString() call, but it's needed - // to ensure qt4 will use the default() locale and not the system() one - sto.setDate(QLocale().toString(QDateTime::currentDateTime(), "ddd MMM d hh:mm:ss yyyy")); + sto.setDate(QDateTime::currentDateTime().toString(Qt::ISODate)); sto.setVersion(m_pThemeVersionEdit->text()); sto.setApplication("KVIrc " KVI_VERSION "." KVI_SOURCES_DATE); diff --git a/src/modules/theme/ThemeFunctions.cpp b/src/modules/theme/ThemeFunctions.cpp index 86a0aa8d8..fe47cce02 100644 --- a/src/modules/theme/ThemeFunctions.cpp +++ b/src/modules/theme/ThemeFunctions.cpp @@ -433,7 +433,7 @@ namespace ThemeFunctions f.addInfoField("Description",szPackageDescription); // this is the equivalent to an empty date.toString() call, but it's needed // to ensure qt4 will use the default() locale and not the system() one - f.addInfoField("Date",QLocale().toString(QDateTime::currentDateTime(),"ddd MMM d hh:mm:ss yyyy")); + f.addInfoField("Date",QDateTime::currentDateTime().toString(Qt::ISODate)); f.addInfoField("Application","KVIrc " KVI_VERSION "." KVI_SOURCES_DATE); if(!out.isNull()) |
