summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorme_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac>2014-11-17 23:32:25 +0000
committerAnton <anton@picapica>2014-11-18 03:34:15 +0400
commit56adc3b9bdedb7c8b425ba13ac0ac0d897478b86 (patch)
tree75574d0c941ebba1edf6d6854a5bbe7f6c19ae0f
parentc1bea284db936776189f5e9d8f030b6e5ef98ebf (diff)
downloadpica-pica-56adc3b9bdedb7c8b425ba13ac0ac0d897478b86.tar.gz
pica-pica-56adc3b9bdedb7c8b425ba13ac0ac0d897478b86.zip
changed datetime format in chatwindow
git-svn-id: svn://localhost/project_picapica/trunk@335 fb96df88-216d-11de-830c-f3023f12d8ac
-rw-r--r--pica-client/chatwindow.cpp4
1 files changed, 2 insertions, 2 deletions
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<History::HistoryRecord> 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);
}
}