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:
parent
c5fef58b2e
commit
c5cdf81f14
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user