projects
/
profile
/
ivi
/
automotive-message-broker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eda9be7
)
Changed GpsTime format from local time to UTC
author
Olivier Delbeke
<olivier.delbeke@awtce.be>
Wed, 8 Apr 2015 08:42:55 +0000
(10:42 +0200)
committer
Olivier Delbeke
<olivier.delbeke@gmail.com>
Wed, 15 Apr 2015 18:15:14 +0000
(20:15 +0200)
plugins/gpsnmea/gpsnmea.cpp
patch
|
blob
|
history
diff --git
a/plugins/gpsnmea/gpsnmea.cpp
b/plugins/gpsnmea/gpsnmea.cpp
index
ec01f90
..
8a547b4
100644
(file)
--- 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)))
{