aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/theme
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/theme')
-rw-r--r--src/modules/theme/packthemedialog.cpp16
-rw-r--r--src/modules/theme/savethemedialog.cpp18
2 files changed, 32 insertions, 2 deletions
diff --git a/src/modules/theme/packthemedialog.cpp b/src/modules/theme/packthemedialog.cpp
index e9cbd1ff6..8b19ce450 100644
--- a/src/modules/theme/packthemedialog.cpp
+++ b/src/modules/theme/packthemedialog.cpp
@@ -384,7 +384,21 @@ bool KviPackThemeDialog::packTheme()
KviPackageWriter f;
- QString szTmp = QDateTime::currentDateTime().toString();
+ QString szTmp;
+ QDateTime date = QDateTime::currentDateTime();
+
+ switch(KVI_OPTION_UINT(KviOption_uintOutputDatetimeFormat))
+ {
+ case 0:
+ szTmp = date.toString();
+ break;
+ case 1:
+ szTmp = date.toString(Qt::ISODate);
+ break;
+ case 2:
+ szTmp = date.toString(Qt::SystemLocaleDate);
+ break;
+ }
f.addInfoField("PackageType","ThemePack");
f.addInfoField("ThemePackVersion",KVI_CURRENT_THEME_ENGINE_VERSION);
diff --git a/src/modules/theme/savethemedialog.cpp b/src/modules/theme/savethemedialog.cpp
index efc0064da..8c93d9edc 100644
--- a/src/modules/theme/savethemedialog.cpp
+++ b/src/modules/theme/savethemedialog.cpp
@@ -237,7 +237,23 @@ bool KviSaveThemeDialog::saveTheme()
sto.setAuthor(m_pAuthorNameEdit->text());
sto.setDescription(m_pThemeDescriptionEdit->toPlainText());
- sto.setDate(QDateTime::currentDateTime().toString());
+
+ QString szTmp;
+ QDateTime date = QDateTime::currentDateTime();
+ switch(KVI_OPTION_UINT(KviOption_uintOutputDatetimeFormat))
+ {
+ case 0:
+ szTmp = date.toString();
+ break;
+ case 1:
+ szTmp = date.toString(Qt::ISODate);
+ break;
+ case 2:
+ szTmp = date.toString(Qt::SystemLocaleDate);
+ break;
+ }
+
+ sto.setDate(szTmp);
sto.setVersion(m_pThemeVersionEdit->text());
sto.setApplication("KVIrc " KVI_VERSION "." KVI_SOURCES_DATE);