added margin to the time traveler check

This commit is contained in:
Miodec 2021-12-29 23:10:46 +01:00
parent d2cdcce047
commit 642df7ede4

View file

@ -113,12 +113,12 @@ class ResultController {
result.timestamp = Math.round(result.timestamp / 1000) * 1000;
if (result.timestamp > Math.round(Date.now() / 1000) * 1000) {
if (result.timestamp > Math.round(Date.now() / 1000) * 1000 + 10) {
Logger.log(
"time_traveler",
{
resultTimestamp: result.timestamp,
serverTimestamp: Math.round(Date.now() / 1000) * 1000,
serverTimestamp: Math.round(Date.now() / 1000) * 1000 + 10,
},
uid
);