diff options
author | Olivier Delbeke <olivier.delbeke@awtce.be> | 2015-04-08 10:42:55 +0200 |
---|---|---|
committer | Olivier Delbeke <olivier.delbeke@gmail.com> | 2015-04-15 20:15:14 +0200 |
commit | 9a0b4a8c0f1039959ce42c195d7176d8cf9744f5 (patch) | |
tree | 675e45f785ecc9be078fad53f6b185a5dc886202 | |
parent | eda9be7528ed04a3cd7f678aac0a82ffdf6d35a0 (diff) | |
download | automotive-message-broker-9a0b4a8c0f1039959ce42c195d7176d8cf9744f5.tar.gz |
Changed GpsTime format from local time to UTC
-rw-r--r-- | plugins/gpsnmea/gpsnmea.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<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))) { |