Skip to content

Commit a9dd37a

Browse files
author
ionut.stan
committed
Not sure SignatureAdd still works.
1 parent 116a8a8 commit a9dd37a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Plugins/Client/SignatureAdd.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@ class SignatureAdd extends JSONRPC.ClientPluginBase
4949
*/
5050
async beforeJSONEncode(outgoingRequest)
5151
{
52-
// Not setting expires to allow HTTP caching AND because the browser machine's UTC time is wrong for a lot of users.
53-
// Unknowingly users are setting the wrong timezone with the wrong UTC time, while the local time *appears* to be correct.
54-
55-
outgoingRequest.requestObject["expires"] = parseInt((new Date().getTime()) + 86400, 10);
52+
outgoingRequest.requestObject["expires"] = parseInt((new Date().getTime()) / 1000 + 86400, 10);
5653
}
5754

5855

0 commit comments

Comments
 (0)