From 3e623368db0d163601b42132effa703314ae22fd Mon Sep 17 00:00:00 2001 From: Armando Fox Date: Mon, 22 Jan 2024 13:29:42 -0800 Subject: [PATCH] Emergency bug patch by @armandofox notified by customer. Add &. safe call when dereferncing an event time, in case it is blank, to views/announcements/index I will also cherry-pick this to main, but not sure if safe to deploy from main at this time, so i'll deploy to heroku from this branch until main is declared clean --- app/views/announcements/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/announcements/index.html.erb b/app/views/announcements/index.html.erb index a992e3a..f5659b6 100644 --- a/app/views/announcements/index.html.erb +++ b/app/views/announcements/index.html.erb @@ -55,7 +55,7 @@

Posted by <%= announcement.audience %>

- Event Date: <%= announcement.eventtime.strftime("%Y-%m-%d %I:%M %p %Z") %>
+ Event Date: <%= announcement.eventtime&.strftime("%Y-%m-%d %I:%M %p %Z") %>
Event Location: <%= announcement.location %>