1
0
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:
Oleg Semyonov 2011-07-22 21:29:59 +03:00
parent fe6c286b56
commit 400e07bbd1

View File

@ -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));