Oops, send server time as an integer
This commit is contained in:
parent
f4ed77d21f
commit
d0242bd943
1 changed files with 1 additions and 1 deletions
2
main.cpp
2
main.cpp
|
@ -63,7 +63,7 @@ int main(int argc, char *argv[]) {
|
||||||
QJsonObject response
|
QJsonObject response
|
||||||
{
|
{
|
||||||
{QStringLiteral("ticket"), QString::fromLatin1(QByteArray::fromRawData(buf, length).toHex())},
|
{QStringLiteral("ticket"), QString::fromLatin1(QByteArray::fromRawData(buf, length).toHex())},
|
||||||
{QStringLiteral("time"), QString::number(SteamUtils()->GetServerRealTime())}
|
{QStringLiteral("time"), static_cast<qint64>(SteamUtils()->GetServerRealTime())}
|
||||||
};
|
};
|
||||||
|
|
||||||
return QJsonDocument(response).toJson(QJsonDocument::Compact);
|
return QJsonDocument(response).toJson(QJsonDocument::Compact);
|
||||||
|
|
Loading…
Add table
Reference in a new issue