fix: timing

This commit is contained in:
Barf-Vader
2025-06-13 13:51:15 +01:00
parent 268392deed
commit 37665bcb3a
4 changed files with 14 additions and 16 deletions

View File

@@ -148,12 +148,15 @@
} else {
const opensFor = timeUntilClosing(timing.opens_at, timing.closes_at, time);
if (opensFor) {
return { isOpen: true, message: `Open now for: ${minsToReadableHours}` };
return {
isOpen: true,
message: `Open now for: ${minsToReadableHours(timeToMins(time))}`
};
}
}
}
return { isOpen: false, message: "Closed today" };
return { isOpen: false, message: "Closed right now" };
}
function timeUntilClosing(openingTime: string, closingTime: string, currentTime: string) {