[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenetwork/kit
From: Hans Petter Bieker <bieker () kde ! org>
Date: 2002-12-23 18:20:18
[Download RAW message or body]
CVS commit by bieker:
Use formatDateTime() instead of own format..
M +3 -4 tmessage.cpp 1.43
M +1 -1 twindow.cpp 1.51
--- kdenetwork/kit/tmessage.cpp #1.42:1.43
@@ -9,4 +9,5 @@
#include <kaction.h>
#include <kglobalsettings.h>
+#include <kglobal.h>
#include <kcolorbutton.h>
#include <kcolordialog.h>
@@ -539,8 +540,6 @@ void TMessage::updateHTML(QString messag
{
QDateTime time = QDateTime::currentDateTime();
- timeStr = QString("<b>[%1 %2 - %3]</b>")
- .arg(time.date().day())
- .arg(QDate::shortMonthName(time.date().month()))
- .arg(time.time().toString());
+ timeStr = QString("<b>[%1]</b>")
+ .arg(KGlobal::locale()->formatDateTime(time));
}
// HTMLize
--- kdenetwork/kit/twindow.cpp #1.50:1.51
@@ -56,5 +56,5 @@ void TWindow::updateTreeItem(QListViewIt
QDateTime signonTime;
signonTime.setTime_t(currentBuddy.signonTime);
- sTime = signonTime.toString();
+ sTime = KGlobal::locale()->formatDateTime(signonTime);
// user class
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic