fix: update date handling to remove timezone offset for hunts
Build Images and Deploy / Update-PROD-Stack (push) Successful in 29s
Build Images and Deploy / Update-PROD-Stack (push) Successful in 29s
This commit is contained in:
@@ -16,14 +16,14 @@
|
||||
<% if (hunt.expiry_date) { %>
|
||||
· 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()) { %>
|
||||
· 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>
|
||||
|
||||
Reference in New Issue
Block a user