diff --git a/src/data/fitparser.cpp b/src/data/fitparser.cpp index 2472df23..47241793 100644 --- a/src/data/fitparser.cpp +++ b/src/data/fitparser.cpp @@ -357,8 +357,8 @@ bool FITParser::parseData(CTX &ctx, const MessageDefinition *def) } else if (def->globalId == COURSE_POINT) { switch (field->id) { case 1: - waypoint.setTimestamp(QDateTime::fromSecsSinceEpoch(val.toUInt() - + 631065600, Qt::UTC)); + waypoint.setTimestamp(QDateTime::fromSecsSinceEpoch( + val.toUInt() + 631065600, Qt::UTC)); break; case 2: waypoint.rcoordinates().setLat( @@ -413,8 +413,8 @@ bool FITParser::parseData(CTX &ctx, const MessageDefinition *def) } } else if (def->globalId == RECORD_MESSAGE) { if (ctx.trackpoint.coordinates().isValid()) { - ctx.trackpoint.setTimestamp(QDateTime::fromSecsSinceEpoch(ctx.timestamp - + 631065600, Qt::UTC)); + ctx.trackpoint.setTimestamp(QDateTime::fromSecsSinceEpoch( + ctx.timestamp + 631065600, Qt::UTC)); ctx.trackpoint.setRatio(ctx.ratio); ctx.segment.append(ctx.trackpoint); ctx.trackpoint = Trackpoint();