Skip to content

Commit c8a3e09

Browse files
author
mhugent
committedFeb 3, 2010
also fix year in gps date
git-svn-id: http://svn.osgeo.org/qgis/trunk@12868 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent ca86c17 commit c8a3e09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/gps/qgsnmeaconnection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ void QgsNMEAConnection::processRMCSentence( const char* data, int len )
180180
mLastGPSInformation.direction = result.direction;
181181

182182
//date and time
183-
QDate date( result.utc.year, result.utc.mon + 1, result.utc.day );
183+
QDate date( result.utc.year + 1900, result.utc.mon + 1, result.utc.day );
184184
QTime time( result.utc.hour, result.utc.min, result.utc.sec );
185185
if ( date.isValid() && time.isValid() )
186186
{

0 commit comments

Comments
 (0)
Please sign in to comment.