Round timestamps to nearest second
This commit is contained in:
parent
f22eb52113
commit
c5688d4a0f
@ -268,7 +268,7 @@ function timestampToTimeString(timestamp) {
|
|||||||
* @returns {Number}
|
* @returns {Number}
|
||||||
*/
|
*/
|
||||||
function time() {
|
function time() {
|
||||||
return Date.now() / 1000;
|
return Math.round(Date.now() / 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user