diff options
Diffstat (limited to 'src/modules/theme/packthemedialog.cpp')
| -rw-r--r-- | src/modules/theme/packthemedialog.cpp | 16 |
1 files changed, 15 insertions, 1 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); |
