mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
gcs: change fw date format to match the fw info and GCS version strings
Use UTC time of last commit instead of local time of PC. Use the same date/time string "YYYYMMDD HH:MM" as GCS uses in About dialog.
This commit is contained in:
parent
fe6c286b56
commit
400e07bbd1
@ -54,7 +54,7 @@ bool UploaderGadgetWidget::descriptionToStructure(QByteArray desc,deviceDescript
|
||||
buildDate = buildDate<<8;
|
||||
buildDate += desc.at(11-i) & 0xFF;
|
||||
}
|
||||
struc->buildDate= QDateTime::fromTime_t(buildDate).toLocalTime().toString("yyyy MMMM dd HH:mm:ss");
|
||||
struc->buildDate= QDateTime::fromTime_t(buildDate).toUTC().toString("yyyyMMdd HH:mm");
|
||||
QByteArray targetPlatform = desc.mid(12,2);
|
||||
// TODO: check platform compatibility
|
||||
QString dscText = QString(desc.mid(14,26));
|
||||
|
Loading…
x
Reference in New Issue
Block a user