From 56adc3b9bdedb7c8b425ba13ac0ac0d897478b86 Mon Sep 17 00:00:00 2001 From: me_desk Date: Mon, 17 Nov 2014 23:32:25 +0000 Subject: changed datetime format in chatwindow git-svn-id: svn://localhost/project_picapica/trunk@335 fb96df88-216d-11de-830c-f3023f12d8ac --- pica-client/chatwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pica-client') diff --git a/pica-client/chatwindow.cpp b/pica-client/chatwindow.cpp index da23c7c..87c7193 100644 --- a/pica-client/chatwindow.cpp +++ b/pica-client/chatwindow.cpp @@ -126,7 +126,7 @@ void ChatWindow::put_message(QString msg, QByteArray id, bool is_me) name = id.toBase64(); } - pos = draw_message(msg, name, QDateTime::currentDateTime().toString(), color, false); + pos = draw_message(msg, name, QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss"), color, false); if (is_me) undelivered_msgs.append(pos); @@ -192,7 +192,7 @@ void ChatWindow::print_history(QList H) dt.setTime_t(r.timestamp); //put_message(r.message, r.peer_id, r.is_me); - draw_message(r.message, name, dt.toString(), color, r.is_delivered); + draw_message(r.message, name, dt.toString("yyyy-MM-dd hh:mm:ss"), color, r.is_delivered); } } -- cgit v1.2.1