Round timestamps to nearest second

This commit is contained in:
Skylar Ittner 2021-07-05 17:41:42 -06:00
parent f22eb52113
commit c5688d4a0f

View File

@ -268,7 +268,7 @@ function timestampToTimeString(timestamp) {
* @returns {Number}
*/
function time() {
return Date.now() / 1000;
return Math.round(Date.now() / 1000);
}
/**