From ce2df79ec0f3f22b827461e8bfbefffcf6bf7497 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Mon, 12 Jan 2009 05:49:27 +0000 Subject: [PATCH] I hate to have to manually put down change dates on the web site - let the writer add a date to the file, so even when sent with mail it should still be ok. svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=909757 --- keduvocdocument/keduvockvtml2writer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/keduvocdocument/keduvockvtml2writer.cpp b/keduvocdocument/keduvockvtml2writer.cpp index 7ba743e..485cc41 100644 --- a/keduvocdocument/keduvockvtml2writer.cpp +++ b/keduvocdocument/keduvockvtml2writer.cpp @@ -142,6 +142,9 @@ bool KEduVocKvtml2Writer::writeInformation( QDomElement &informationElement, con informationElement.appendChild( newTextElement( KVTML_COMMENT, m_doc->documentComment() ) ); } + QDate today = QDate::currentDate(); + informationElement.appendChild( newTextElement( KVTML_DATE, today.toString(QLatin1String("yyyy-MM-dd")) ) ); + // category if ( !m_doc->category().isEmpty() ) { informationElement.appendChild( newTextElement( KVTML_CATEGORY, m_doc->category() ) ); -- 2.47.3