Skip to content

Commit b6b56ab

Browse files
kashifzimbatm
authored andcommitted
Date() return a number
1 parent 398551f commit b6b56ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/requests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function send(config, options, callback) {
4343
}
4444

4545
function createSignedQueryString(token, request) {
46-
var timestamp = parseInt(new Date().getTime() / 1000, 10);
46+
var timestamp = Date.now() / 1000 | 0;
4747

4848
var params = {
4949
auth_key: token.key,

0 commit comments

Comments
 (0)