fix upcoming filter to compare full datetime not just date

This commit is contained in:
esef committed 2026-07-14 22:19:54 +03:00
1 parent 289f8b281c
commit 7214e7c0f3
1 file changed
+2 -1
+2 -1
View File
@@ -121,7 +121,8 @@ document.addEventListener("DOMContentLoaded", () => {
gridEl.innerHTML = html;
const upcoming = allEvents.filter(e => e.date >= todayStr);
const nowISO = new Date().toISOString();
const upcoming = allEvents.filter(e => e._sort >= nowISO);
if (upcoming.length === 0) {
sidebarEl.innerHTML = '<p class="cal-side-empty">No upcoming events.<br>Use !book in Discord.</p>';
} else {