From de8fac7f17ecbfb82e7d9232c1d7748674e98a25 Mon Sep 17 00:00:00 2001 From: Matt Vogt Date: Fri, 4 Mar 2016 10:52:34 +1000 Subject: [PATCH] [libcontacts] Ensure timestamps use C locale. Contributes to MER#1536 Timestamps must be generated using the C locale, so they do not contain digits other than Latin. --- src/seasidecache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/seasidecache.cpp b/src/seasidecache.cpp index 483bd9f..d1ec8b4 100644 --- a/src/seasidecache.cpp +++ b/src/seasidecache.cpp @@ -3099,7 +3099,7 @@ QString SeasideCache::exportContacts() } QFile vcard(baseDir + QDir::separator() - + QDateTime::currentDateTime().toString("ss_mm_hh_dd_mm_yyyy") + + QLocale::c().toString(QDateTime::currentDateTime(), QStringLiteral("ss_mm_hh_dd_mm_yyyy")) + ".vcf"); if (!vcard.open(QIODevice::WriteOnly)) {