[qet] qet/qet: [5503] Change saveddate (title block variable) static date format "yyyy-MM-dd"

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 5503
Author:   scorpio810
Date:     2018-09-14 06:08:04 +0200 (Fri, 14 Sep 2018)
Log Message:
-----------
Change saveddate (title block variable) static date format "yyyy-MM-dd"
to System Locale Short Date

Modified Paths:
--------------
    trunk/sources/qetproject.cpp

Modified: trunk/sources/qetproject.cpp
===================================================================
--- trunk/sources/qetproject.cpp	2018-09-08 15:18:51 UTC (rev 5502)
+++ trunk/sources/qetproject.cpp	2018-09-14 04:08:04 UTC (rev 5503)
@@ -876,7 +876,7 @@
 	if (!QET::writeXmlFile(xml_project, m_file_path, &error_message)) return(error_message);
 	
 	//title block variables should be updated after file save dialog is confirmed, before file is saved.
-	project_properties_.addValue("saveddate", QDate::currentDate().toString("yyyy-MM-dd"));
+	project_properties_.addValue("saveddate", QDate::currentDate().toString(Qt::SystemLocaleShortDate));
 	project_properties_.addValue("savedtime", QDateTime::currentDateTime().toString("HH:mm"));
 	project_properties_.addValue("savedfilename", QFileInfo(filePath()).baseName());
 	project_properties_.addValue("savedfilepath", filePath());


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/