new Date().getTime() to Date.now()

This commit is contained in:
djmaze 2020-08-17 21:35:03 +02:00
parent 7670d2073d
commit 1b811428e7
3 changed files with 5 additions and 5 deletions

View file

@ -61,7 +61,7 @@ const __set = (key, value) => {
}
};
const timestamp = () => Math.round(new Date().getTime() / 1000);
const timestamp = () => Math.round(Date.now() / 1000);
const setTimestamp = () => __set(TIME_KEY, timestamp());