Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
also fix year in gps date
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12868 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Feb 3, 2010
1 parent 46435c0 commit 081b50b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/gps/qgsnmeaconnection.cpp
Expand Up @@ -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() )
{
Expand Down

0 comments on commit 081b50b

Please sign in to comment.