Consider all datetimes fetched from feeds to be UTC.

This commit is contained in:
Martin Rotter 2014-03-04 19:15:52 +01:00
parent cd9df707cb
commit 04c2f3bcc6
1 changed files with 3 additions and 0 deletions

View File

@ -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) {