mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-31 17:44:52 +01:00
Consider all datetimes fetched from feeds to be UTC.
This commit is contained in:
parent
cd9df707cb
commit
04c2f3bcc6
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user