summaryrefslogtreecommitdiff
path: root/forummodel.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-04-07 00:59:24 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-04-07 00:59:24 +0200
commit1a66f6ee4f3806e2a18af718654e7281c7dd1066 (patch)
tree04aa1188b3e89611bc0492a49b1471260a2ca074 /forummodel.cpp
parent81cfd7c483940c0672f35f91e088de9d7760fec1 (diff)
downloadtapasboard-1a66f6ee4f3806e2a18af718654e7281c7dd1066.tar.gz
tapasboard-1a66f6ee4f3806e2a18af718654e7281c7dd1066.zip
fix some issues
Diffstat (limited to 'forummodel.cpp')
-rw-r--r--forummodel.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/forummodel.cpp b/forummodel.cpp
index 7408f32..ea54f8e 100644
--- a/forummodel.cpp
+++ b/forummodel.cpp
@@ -158,7 +158,9 @@ void ForumModel::refresh()
QDateTime ForumModel::parseDateTime(const QVariant &v)
{
QString s = v.toString();
- return QDateTime::fromString(s, Qt::ISODate);
+ QDateTime dt = QDateTime::fromString(s, Qt::ISODate);
+ dt.setTimeSpec(Qt::UTC);
+ return dt;
}
QDateTime ForumModel::oldestPostUpdate(const QList<Topic> &topics)
@@ -282,10 +284,10 @@ void ForumModel::handleForumTopicsChanged(int forumId, int start, int end)
void ForumModel::handleForumTopicChanged(int forumId, int topicId)
{
- if (forumId == _forumId) {qDebug() << "Me topic cha";
+ if (forumId == _forumId) {
for (int i = 0; i < _data.size(); i++) {
Topic& topic = _data[i];
- if (topic.topic_id == topicId) {qDebug() << "Me topic cha cha";
+ if (topic.topic_id == topicId) {
// Need to refresh this topic
QList<Topic> topics = loadTopics(i, i);
if (topics.size() == 1) {