From 04c2f3bcc6b59fa7c73de4e31b04c36c189467f7 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Tue, 4 Mar 2014 19:15:52 +0100 Subject: [PATCH] Consider all datetimes fetched from feeds to be UTC. --- src/core/textfactory.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/textfactory.cpp b/src/core/textfactory.cpp index 912fec8a3..4479673b3 100755 --- a/src/core/textfactory.cpp +++ b/src/core/textfactory.cpp @@ -63,6 +63,9 @@ QDateTime TextFactory::parseDateTime(const QString &date_time) { dt = locale.toDateTime(date.left(pattern.size()), pattern); if (dt.isValid()) { + // Make sure that this date/time is considered UTC. + dt.setTimeSpec(Qt::UTC); + if (time_zone_offset.isValid()) { // Time zone offset was detected. if (positive_time_zone_offset) {