[kmail2] [Bug 340260] Kmail composer's template ODATE/ODATESHORT renders incorrect dates.
Laurent Montel
montel at kde.org
Fri Oct 24 10:08:09 BST 2014
https://bugs.kde.org/show_bug.cgi?id=340260
--- Comment #3 from Laurent Montel <montel at kde.org> ---
Please paste or attach an exact message here please.
Because ODATE == original date
see code:
"
} else if ( cmd.startsWith( QLatin1String( "ODATE" ) ) ) {
kDebug() << "Command: ODATE";
i += strlen( "ODATE" );
if ( mOrigMsg ) {
const QDateTime date =
mOrigMsg->date()->dateTime().dateTime();
const QString str = KGlobal::locale()->formatDate(
date.date(), KLocale::LongDate );
plainBody.append( str );
const QString body = plainToHtml( str );
htmlBody.append( body );
}
"
=> it will take date from original message.
So I need to have a exact message for testing it.
For me code is ok.
I don't understand how it can take another date.
Template uses currentDate => %DATE or original date %ODATE
Regards
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kdepim-bugs
mailing list