From 9a0b4a8c0f1039959ce42c195d7176d8cf9744f5 Mon Sep 17 00:00:00 2001 From: Olivier Delbeke Date: Wed, 8 Apr 2015 10:42:55 +0200 Subject: Changed GpsTime format from local time to UTC --- plugins/gpsnmea/gpsnmea.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/gpsnmea/gpsnmea.cpp b/plugins/gpsnmea/gpsnmea.cpp index ec01f908..8a547b4e 100644 --- a/plugins/gpsnmea/gpsnmea.cpp +++ b/plugins/gpsnmea/gpsnmea.cpp @@ -306,7 +306,7 @@ void Location::parseTime(string h, string m, string s, string dd, string mm, str t.tm_mon = boost::lexical_cast(mm) - 1; t.tm_year = boost::lexical_cast(yy) + 100; - time_t time = mktime(&t); + time_t time = timegm(&t); if(mGpsTime->value() != (double(time))) { -- cgit v1.2.1