Skip to content

Commit 297e093

Browse files
committed
Date() return a number
1 parent 11344d1 commit 297e093

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
@@ -40,7 +40,7 @@ function send(config, options, callback) {
4040
}
4141

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

4545
var params = {
4646
auth_key: token.key,

0 commit comments

Comments
 (0)