Commit 7e5aeba4 authored by Volker Krause's avatar Volker Krause
Browse files

Qt6 doesn't ignore spaces when parsing ISO-formatted date/times anymore

With this the full extractor test suite with close to 1k sample documents
passes with Qt6 as well now.
parent a06d7574
Pipeline #182613 passed with stage
in 3 minutes and 12 seconds
......@@ -188,6 +188,9 @@ static QVariant propertyValue(const QMetaProperty &prop, const QJsonValue &v)
} else {
auto str = v.toString();
dt = QDateTime::fromString(str, Qt::ISODate);
if (dt.isNull()) {
dt = QDateTime::fromString(QString(str).simplified().remove(QLatin1Char(' ')), Qt::ISODate);
for (unsigned int i = 0; i < fallbackDateTimePatternCount && dt.isNull(); ++i) {
dt = QDateTime::fromString(str, QString::fromLatin1(fallbackDateTimePattern[i]));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment