Skip to content
Permalink
Browse files

also fix year in gps date

git-svn-id: http://svn.osgeo.org/qgis/trunk@12868 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Feb 3, 2010
1 parent ca86c17 commit c8a3e09b10ff0d3e00fa22dae7014a023cfe8150
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/gps/qgsnmeaconnection.cpp
@@ -180,7 +180,7 @@ void QgsNMEAConnection::processRMCSentence( const char* data, int len )
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() )
{

0 comments on commit c8a3e09

Please sign in to comment.
You can’t perform that action at this time.