From 2f72036c4c7ebdda0017a043d2bd0e5ae862ceb0 Mon Sep 17 00:00:00 2001 From: Jozef Mlich Date: Fri, 17 Dec 2021 10:19:50 +0100 Subject: [PATCH] fixes #31 pretend that gpx is in local timezone to be aligned with rest of application --- gpspoint.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gpspoint.cpp b/gpspoint.cpp index 873c3c7..06dce7d 100644 --- a/gpspoint.cpp +++ b/gpspoint.cpp @@ -3,6 +3,7 @@ */ #include +#include #include "gpspoint.h" GpsPoint::GpsPoint() { @@ -13,6 +14,7 @@ GpsPoint::GpsPoint() { void GpsPoint::setTime(QString time_str) { QDateTime dt = QDateTime::fromString(time_str, Qt::ISODate); + dt.setTimeSpec(Qt::LocalTime); // TODO fix working with time zones and remove this ugly hack if(dt.isValid()) { *dateTime = dt; } else {