Fixed issue with invalid time being sent when logging

This commit is contained in:
seefo 2017-06-09 10:58:07 -07:00
parent fce3badd1d
commit 06a5d0970c

View file

@ -50,7 +50,7 @@ void UserActivityLogger::logAction(QString action, QJsonObject details, JSONCall
// Log the local-time that this event was logged
QHttpPart elapsedPart;
elapsedPart.setHeader(QNetworkRequest::ContentDispositionHeader, "form-data; name=\"elapsed_ms\"");
elapsedPart.setBody(QByteArray().append(_timer.elapsed()));
elapsedPart.setBody(QString::number(_timer.elapsed()).toLocal8Bit());
multipart->append(elapsedPart);
// If there are action details, add them to the multipart