aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/theme
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2015-09-15 04:08:12 +0200
committerGravatar Szymon Tomasz Stefanek2015-09-15 04:08:12 +0200
commitcba7efb48e9c6ba50e1585a475fe4cb0d0046f35 (patch)
treeda48ad27d84cb2a6d50fdd2dc37bf1e7cc06fac6 /src/modules/theme
parentAdd package management module (2) (diff)
downloadKVIrc-cba7efb48e9c6ba50e1585a475fe4cb0d0046f35.tar.gz
KVIrc-cba7efb48e9c6ba50e1585a475fe4cb0d0046f35.tar.bz2
KVIrc-cba7efb48e9c6ba50e1585a475fe4cb0d0046f35.zip
Improve package management
Diffstat (limited to 'src/modules/theme')
-rw-r--r--src/modules/theme/SaveThemeDialog.cpp4
-rw-r--r--src/modules/theme/ThemeFunctions.cpp2
2 files changed, 2 insertions, 4 deletions
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())