From 456b26aab72537df8356591b8b99184d6e515c29 Mon Sep 17 00:00:00 2001 From: Stuart Olivera Date: Tue, 28 May 2019 22:45:26 -0400 Subject: [PATCH] fix: Close tag in datetime helper --- app/helpers/hackathon_manager_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/hackathon_manager_helper.rb b/app/helpers/hackathon_manager_helper.rb index 6d78e1e50..1c3396761 100644 --- a/app/helpers/hackathon_manager_helper.rb +++ b/app/helpers/hackathon_manager_helper.rb @@ -96,7 +96,7 @@ def display_datetime(datetime, opts = {}) if Time.now - datetime < 5.hours formatted << "#{time_ago_in_words(datetime, include_seconds: true)} ago" else - format = datetime.year == Time.now.year ? "%b %-d at %I:%M %P" : "%b %-d, %Y at %I:%M %P" + format = datetime.year == Time.now.year ? "%b %-d at %I:%M %P" : "%b %-d, %Y at %I:%M %P" if Time.now - datetime > 6.months format = "%b %-d, %Y" end