summaryrefslogtreecommitdiff
path: root/topicmodel.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 /topicmodel.cpp
parent81cfd7c483940c0672f35f91e088de9d7760fec1 (diff)
downloadtapasboard-1a66f6ee4f3806e2a18af718654e7281c7dd1066.tar.gz
tapasboard-1a66f6ee4f3806e2a18af718654e7281c7dd1066.zip
fix some issues
Diffstat (limited to 'topicmodel.cpp')
-rw-r--r--topicmodel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/topicmodel.cpp b/topicmodel.cpp
index c7932aa..4188784 100644
--- a/topicmodel.cpp
+++ b/topicmodel.cpp
@@ -210,7 +210,9 @@ void TopicModel::markAsRead()
QDateTime TopicModel::parseDbDateTime(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 TopicModel::oldestPostUpdate(const QList<Post> &posts)