SlfParser: Read start date in last format

This commit is contained in:
grauser
2015-06-01 23:30:54 +02:00
parent 7ae35dbcf8
commit 391ca0d29c

View File

@@ -79,7 +79,10 @@ SlfParser::endElement( const QString&, const QString&, const QString& qName)
{
if (qName == "startDate")
{
// Fri May 1 13:55:10 GMT+0200 2015
QLocale local(QLocale::English);
QString date = buffer.mid(0,buffer.indexOf("GMT")) + buffer.right(4);
rideFile->setStartTime(local.toDateTime(date, "ddd MMM d HH:mm:ss yyyy"));
}
else if (qName == "StartDatum")
{