diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/preferences.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/preferences.cpp b/src/preferences.cpp index 8bcdcecc1..6cf4bdfe3 100644 --- a/src/preferences.cpp +++ b/src/preferences.cpp @@ -275,9 +275,9 @@ void Preferences::reset() time_t sptime = time (nullptr); struct tm *sptm = localtime (&sptime); gchar sptstr[256]; - strftime (sptstr, 256, "%Y_%m_%d_%H_%M_%S", sptm); + strftime (sptstr, 256, "%Y-%m-%d_%H-%M-%S", sptm); - char *new_name = g_strdup_printf("%s_%s", _prefs_filename.c_str(), sptstr); + char *new_name = g_strdup_printf("%s_%s.xml", _prefs_filename.c_str(), sptstr); if (g_file_test(_prefs_filename.c_str(), G_FILE_TEST_EXISTS)) { |
