1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +01:00

Fixed IGC date century issue

This commit is contained in:
Martin Tůma 2019-03-10 10:35:49 +01:00
parent c5fef58b2e
commit c5cdf81f14

View File

@ -112,7 +112,7 @@ bool IGCParser::readHRecord(const char *line, int len)
return false; return false;
} }
_date = QDate(y + 2000 < QDate::currentDate().year() ? 2000 + y : 1900 + y, _date = QDate(y + 2000 <= QDate::currentDate().year() ? 2000 + y : 1900 + y,
m, d); m, d);
if (!_date.isValid()) { if (!_date.isValid()) {
_errorString = "Invalid date"; _errorString = "Invalid date";