fix error

This commit is contained in:
邱博亞 2021-10-21 13:46:34 +08:00
parent dff1cf4b1a
commit 90c411f378
1 changed files with 2 additions and 2 deletions

View File

@ -109,9 +109,9 @@ class EventNews
e = self.event_end_date
if s.blank? && e.blank?
""
elsif s.blank?
s.strftime('%Y-%m-%d %H:%M')
elsif e.blank?
s.strftime('%Y-%m-%d %H:%M')
elsif s.blank?
"~ " + e.strftime('%Y-%m-%d %H:%M')
else
if s.to_date == e.to_date