[fix] Fix time displayed in happening_now.haml; Make event_schedule#happening_now? more efficient

This commit is contained in:
Jimmy 2021-03-19 17:13:34 +08:00 committed by CactusPuppy
parent 2628952142
commit 85fe894876
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82
2 changed files with 6 additions and 7 deletions

View file

@ -9,12 +9,10 @@
.col-md-12
%h2
#{pluralize(@events_schedules.count, 'Event')} Occurring Within The Next 30 minutes.
%br
%small
This page was loaded at
= inyourtz(Time.now) do
= Time.now.strftime('%a %b %d at %I:%M %P (%z)')
\.
%h3
This page was loaded at
= inyourtz(Time.now) do
#{Time.now.strftime('%a %b %d at %I:%M %P (%z)').to_s}
.row
/ TODO: Clean this up, merge with all events page.