Commit 88ab45c4 authored by Pekka Vuorela's avatar Pekka Vuorela

[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.
parent b0fd8b4c
......@@ -103,10 +103,8 @@ public:
QString currentDateTime()
{
// TODO: Make sure this can handle time correctly
// Let's use ISO8601 strings
QDateTime dt = QDateTime::currentDateTime();
return dt.toString("yyyy-MM-ddThh:mm:ss");
QDateTime dt = QDateTime::currentDateTimeUtc();
return dt.toString(Qt::ISODate);
}
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