access: Fix today check
This commit is contained in:
@ -83,7 +83,8 @@ async function updateOverview(client) {
|
||||
const date = new Date(dateString);
|
||||
const row = document.createElement('div');
|
||||
row.className = 'day';
|
||||
if (now.getDate() === date.getDate()) row.classList.add('today');
|
||||
if (now.getFullYear() === date.getFullYear() && now.getMonth() === date.getMonth() && now.getDate() === date.getDate())
|
||||
row.classList.add('today');
|
||||
row.innerHTML = `<div><span style="font-size: 0.75em; display: block">${fmtDateWeekday(date)}</span>${fmtDate(date)}</div>`;
|
||||
const container = document.createElement('div');
|
||||
container.className = 'schedule-container';
|
||||
|
Reference in New Issue
Block a user