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);
|
dt = locale.toDateTime(date.left(pattern.size()), pattern);
|
||||||
|
|
||||||
if (dt.isValid()) {
|
if (dt.isValid()) {
|
||||||
|
// Make sure that this date/time is considered UTC.
|
||||||
|
dt.setTimeSpec(Qt::UTC);
|
||||||
|
|
||||||
if (time_zone_offset.isValid()) {
|
if (time_zone_offset.isValid()) {
|
||||||
// Time zone offset was detected.
|
// Time zone offset was detected.
|
||||||
if (positive_time_zone_offset) {
|
if (positive_time_zone_offset) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user