Skip to content

Commit

Permalink
also fix year in gps date
Browse files Browse the repository at this point in the history
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
Original file line number Diff line number Diff line change
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.