fix upcoming filter to compare full datetime not just date
This commit is contained in:
1 parent
289f8b281c
commit
7214e7c0f3
1 file changed
+2
-1
+2
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user