Commit dc528c6e authored by pvuorela's avatar pvuorela

Merge branch 'master' into 'master'

[transfer-engine] Store timestamps in proper ISO-8601 UTC. Contributes to JB#34413

::toString() with time pattern can use localized numbers, which
doesn't end up proper ISO-8601 format. Also as local time
the value was ambigous after timezone change.

See merge request !1
parents b0fd8b4c 88ab45c4
...@@ -103,10 +103,8 @@ public: ...@@ -103,10 +103,8 @@ public:
QString currentDateTime() QString currentDateTime()
{ {
// TODO: Make sure this can handle time correctly QDateTime dt = QDateTime::currentDateTimeUtc();
// Let's use ISO8601 strings return dt.toString(Qt::ISODate);
QDateTime dt = QDateTime::currentDateTime();
return dt.toString("yyyy-MM-ddThh:mm:ss");
} }
bool createDatabaseSchema() bool createDatabaseSchema()
Markdown is supported
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