Skip to content

Commit

Permalink
Schmunguss lungus det kanske funkar nu?
Browse files Browse the repository at this point in the history
  • Loading branch information
foodelevator committed Nov 7, 2024
1 parent 0893005 commit dc82fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/scripts/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dc82fd3

Please sign in to comment.