mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Add support for ISO8601 extended date time format with milliseconds
Fixes #2750
This commit is contained in:
@@ -158,6 +158,10 @@ QDateTime convertToLocalTime(QString timestamp)
|
||||
|
||||
// ISO format without timezone offset
|
||||
return QDateTime::fromString(timestamp, Qt::ISODate);
|
||||
} else if (timestamp.size() == 23 && timestamp[10].toLower() == 't') {
|
||||
|
||||
// ISO extended format without timezone offset but with milliseconds
|
||||
return QDateTime::fromString(timestamp, Qt::ISODateWithMs);
|
||||
}
|
||||
|
||||
// if not sure, just fallback to basic method
|
||||
|
||||
Reference in New Issue
Block a user