------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=139835
------- Additional Comments From pennguin gmail com 2007-07-12 23:43 -------
Here it is me quick suggestion:
when message is being saved in history it checks if timestamp is from future if
yes, it uses current time as incoming message timestamp, if not nothing
changes. As a result if we receive message when offline it is saved with
incoming time.
Unfortunately it doesn't help when sender has slower clock, in my opinion only
solution is to always set current time in history.
Here is my code:
kopete/plugins/history/historylogger.cpp
Line 272 (in kopete 0.12.5 kde 3.5.7), part of HistoryLogger::appendMessage
msgElem.setAttribute( "time", msg.timestamp().toString("d h:m:s") ;
change to:
if(QDateTime::currentDateTime()<msg.timestamp())
{
msgElem.setAttribute( "time",
QDateTime::currentDateTime().toString("d h:m:s");
} else {
msgElem.setAttribute( "time", msg.timestamp().toString("d
h:m:s") ;
}
Sorry for my English and code I'm new here and in C++ :)
_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel