From: Frederik Gladhorn Date: Mon, 12 Jan 2009 05:50:02 +0000 (+0000) Subject: backport r909757 - date X-Git-Tag: v4.2.0~2 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=131013207d866636f51802a776733f75986c4220;p=libqmvoc.git backport r909757 - date svn path=/branches/KDE/4.2/kdeedu/libkdeedu/; revision=909758 --- 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() ) );