From 131013207d866636f51802a776733f75986c4220 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Mon, 12 Jan 2009 05:50:02 +0000 Subject: [PATCH] backport r909757 - date svn path=/branches/KDE/4.2/kdeedu/libkdeedu/; revision=909758 --- 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