summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Delbeke <olivier.delbeke@awtce.be>2015-04-08 10:40:39 +0200
committerOlivier Delbeke <olivier.delbeke@gmail.com>2015-04-15 20:14:50 +0200
commiteda9be7528ed04a3cd7f678aac0a82ffdf6d35a0 (patch)
treebd6fcb76a2c5f178cdb67a36e418a9cdbee14445
parent4279804ec1986e918af017c8110dd5caf64e4887 (diff)
downloadautomotive-message-broker-eda9be7528ed04a3cd7f678aac0a82ffdf6d35a0.tar.gz
Bugfix: wrong date conversion in gpsnmea plugin
-rw-r--r--plugins/gpsnmea/gpsnmea.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/gpsnmea/gpsnmea.cpp b/plugins/gpsnmea/gpsnmea.cpp
index 7663e772..ec01f908 100644
--- a/plugins/gpsnmea/gpsnmea.cpp
+++ b/plugins/gpsnmea/gpsnmea.cpp
@@ -303,7 +303,7 @@ void Location::parseTime(string h, string m, string s, string dd, string mm, str
t.tm_min = boost::lexical_cast<int>(m);
t.tm_sec = boost::lexical_cast<int>(s);
t.tm_mday = boost::lexical_cast<int>(dd);
- t.tm_mon = boost::lexical_cast<int>(mm);
+ t.tm_mon = boost::lexical_cast<int>(mm) - 1;
t.tm_year = boost::lexical_cast<int>(yy) + 100;
time_t time = mktime(&t);