diff options
-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 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); |