aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/theme/savethemedialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/theme/savethemedialog.cpp')
-rw-r--r--src/modules/theme/savethemedialog.cpp18
1 files changed, 17 insertions, 1 deletions
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);