diff --git a/functions/src/create-contract.ts b/functions/src/create-contract.ts index e30ba608..ab65180b 100644 --- a/functions/src/create-contract.ts +++ b/functions/src/create-contract.ts @@ -69,7 +69,7 @@ export const createContract = newEndpoint(['POST'], async (req, [user, _]) => { // Uses utc time on server: const today = new Date() - let freeMarketResetTime = today.setUTCHours(16, 0, 0, 0) + let freeMarketResetTime = new Date().setUTCHours(16, 0, 0, 0) if (today.getTime() < freeMarketResetTime) { freeMarketResetTime = freeMarketResetTime - 24 * 60 * 60 * 1000 }