From dc82fd3056601fd8ebf8e018ad8db7163836373b Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Thu, 7 Nov 2024 21:22:12 +0100 Subject: [PATCH] Schmunguss lungus det kanske funkar nu? --- client/scripts/dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/scripts/dashboard.js b/client/scripts/dashboard.js index da2dcfb..fc60425 100644 --- a/client/scripts/dashboard.js +++ b/client/scripts/dashboard.js @@ -84,7 +84,7 @@ Template.dashboard.events({ exp.setHours(4, 0, 0, 0); // Set time to 04:00:00.000 // If 04:00 has already passed today, set it for tomorrow - if (new Date() >= exp) { + if (exp <= new Date()) { exp.setDate(exp.getDate() + 1); } obj.expire = exp;