mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Improved track date handling
This commit is contained in:
parent
1242423ca8
commit
307405d661
@ -110,7 +110,8 @@ bool IGCParser::readHRecord(const char *line, int len)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
_date = QDate(2000 + y, m, d);
|
_date = QDate(y + 2000 < QDate::currentDate().year() ? 2000 + y : 1900 + y,
|
||||||
|
m, d);
|
||||||
if (!_date.isValid()) {
|
if (!_date.isValid()) {
|
||||||
_errorString = "Invalid date";
|
_errorString = "Invalid date";
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user