Skip to content
This repository was archived by the owner on Apr 10, 2024. It is now read-only.

Commit 1973ec0

Browse files
author
Axel Freudiger
committed
rounding timestamp
1 parent 0158b1a commit 1973ec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OAuth/Consumer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@
395395
var oauth = this;
396396

397397
if (oauth.getTimeStampFormat() == 's')
398-
return parseInt(+new Date() / 1000, 10)/1000; // use short form of getting a timestamp
398+
return parseInt(+new Date() / 100000, 10); // use short form of getting a timestamp
399399
else
400400
return parseInt(+new Date() / 1000, 10); // use short form of getting a timestamp
401401
}

0 commit comments

Comments
 (0)