diff --git a/frontend/pages/index.ejs b/frontend/pages/index.ejs
index 9cb9852..3737ca3 100644
--- a/frontend/pages/index.ejs
+++ b/frontend/pages/index.ejs
@@ -104,7 +104,7 @@
widgets[nextWidgetId].classList.add('active');
if (widgets[nextWidgetId].querySelector('[live-time]')) {
widgets[nextWidgetId].querySelector('[live-time]').innerHTML = new Date().toLocaleTimeString('en-US', { timeZone: 'America/New_York', hour: 'numeric', minute: 'numeric' }) + ((widgets[nextWidgetId].querySelector('[live-time]').innerHTML.split(' • ')[1] && widgets[nextWidgetId].querySelector('[live-time]').innerHTML.split(' • ')[1] != '') ? ' • ' + widgets[nextWidgetId].querySelector('[live-time]').innerHTML.split(' • ')[1] : '');
- }
+ };
};
function startSwitchInterval() {
diff --git a/frontend/partials/header.ejs b/frontend/partials/header.ejs
index 343d2b3..334cf86 100644
--- a/frontend/partials/header.ejs
+++ b/frontend/partials/header.ejs
@@ -158,11 +158,11 @@
} %>
<%= (isExtraHelp) ? '📖' : (isClubs) ? '📰' : (isSports) ? '🏈' : icon %>
- <% if ((day === 'Saturday') || (day === 'Sunday')) { %>
+ <% if ((weekday === 'Saturday') || (weekday === 'Sunday')) { %>
No School
<% } else { %>
- <%= (new Date()).toLocaleTimeString('en-US', { timeZone: 'America/New_York', hour: 'numeric', minute: 'numeric' }) %><% if (period !== -1) { %> • Period <%= period + 1 %><% } else if (isExtraHelp) { %> • Extra Help<% } else if (isClubs) { %> • Clubs<% } else if (isSports) { %> • Sports<% } %>
- <% if (period !== -1) { %>Period <%= period + 1 %>: <%= start %> <%= startAPm %> - <%= end %> <%= endAPm %><% } else if (isExtraHelp) { %>2:43 PM - 3:15 PM<% } else if (isClubs) { %>3:15 PM - 4:00 PM<% } else if (isSports) { %>4:00 PM - 5:00 PM<% } else { %><%= dayStart %> <%= dayStartAPm %> - <%= dayEnd %> <%= dayEndAPm %><% } %>
+ <%= (new Date()).toLocaleTimeString('en-US', { timeZone: 'America/New_York', hour: 'numeric', minute: 'numeric' }).replace('00:', '12:') %><% if (period !== -1) { %> • Period <%= period + 1 %><% } else if (isExtraHelp) { %> • Extra Help<% } else if (isClubs) { %> • Clubs<% } else if (isSports) { %> • Sports<% } %>
+ <% if (period !== -1) { %>Period <%= period + 1 %>: <%= start.replace('00:', '12:') %> <%= startAPm %> - <%= end.replace('00:', '12:') %> <%= endAPm %><% } else if (isExtraHelp) { %>2:43 PM - 3:15 PM<% } else if (isClubs) { %>3:15 PM - 4:00 PM<% } else if (isSports) { %>4:00 PM - 5:00 PM<% } else { %><%= dayStart.replace('00:', '12:') %> <%= dayStartAPm %> - <%= dayEnd.replace('00:', '12:') %> <%= dayEndAPm %><% } %>
<% } %>