[QGIS Commit] r12868 - trunk/qgis/src/core/gps

svn_qgis at osgeo.org svn_qgis at osgeo.org
Wed Feb 3 11:44:33 EST 2010


Author: mhugent
Date: 2010-02-03 11:44:29 -0500 (Wed, 03 Feb 2010)
New Revision: 12868

Modified:
   trunk/qgis/src/core/gps/qgsnmeaconnection.cpp
Log:
also fix year in gps date

Modified: trunk/qgis/src/core/gps/qgsnmeaconnection.cpp
===================================================================
--- trunk/qgis/src/core/gps/qgsnmeaconnection.cpp	2010-02-03 16:19:19 UTC (rev 12867)
+++ trunk/qgis/src/core/gps/qgsnmeaconnection.cpp	2010-02-03 16:44:29 UTC (rev 12868)
@@ -180,7 +180,7 @@
     mLastGPSInformation.direction = result.direction;
 
     //date and time
-    QDate date( result.utc.year, result.utc.mon + 1, result.utc.day );
+    QDate date( result.utc.year + 1900, result.utc.mon + 1, result.utc.day );
     QTime time( result.utc.hour, result.utc.min, result.utc.sec );
     if ( date.isValid() && time.isValid() )
     {



More information about the QGIS-commit mailing list