fix: update date handling to remove timezone offset for hunts
Build Images and Deploy / Update-PROD-Stack (push) Successful in 29s

This commit is contained in:
2026-03-20 11:15:26 -04:00
parent 7086f42b9e
commit 6e4b1b972b
6 changed files with 48 additions and 11 deletions
+3 -3
View File
@@ -16,14 +16,14 @@
<% if (hunt.expiry_date) { %>
&middot; Expires <time datetime="<%= hunt.expiry_date %>"><%= new Date(hunt.expiry_date).toLocaleDateString() %></time>
<% } %>
<% if (hunt.start_date && new Date(hunt.start_date + 'Z') > new Date()) { %>
<% if (hunt.start_date && new Date(hunt.start_date) > new Date()) { %>
&middot; Starts <time datetime="<%= hunt.start_date %>"><%= new Date(hunt.start_date).toLocaleDateString() %></time>
<% } %>
</span>
</div>
<% if (hunt.expiry_date && new Date(hunt.expiry_date + 'Z') < new Date()) { %>
<% if (hunt.expiry_date && new Date(hunt.expiry_date) < new Date()) { %>
<span class="badge expired">Expired</span>
<% } else if (hunt.start_date && new Date(hunt.start_date + 'Z') > new Date()) { %>
<% } else if (hunt.start_date && new Date(hunt.start_date) > new Date()) { %>
<span class="badge">Upcoming</span>
<% } else { %>
<span class="badge"><%= hunt.package_count %> packages</span>