Changed GpsTime format from local time to UTC
authorOlivier Delbeke <olivier.delbeke@awtce.be>
Wed, 8 Apr 2015 08:42:55 +0000 (10:42 +0200)
committerOlivier Delbeke <olivier.delbeke@gmail.com>
Wed, 15 Apr 2015 18:15:14 +0000 (20:15 +0200)
plugins/gpsnmea/gpsnmea.cpp

index ec01f90..8a547b4 100644 (file)
@@ -306,7 +306,7 @@ void Location::parseTime(string h, string m, string s, string dd, string mm, str
                t.tm_mon = boost::lexical_cast<int>(mm) - 1;
                t.tm_year = boost::lexical_cast<int>(yy) + 100;
 
-               time_t time = mktime(&t);
+               time_t time = timegm(&t);
 
                if(mGpsTime->value<double>() != (double(time)))
                {