Skip to content
Snippets Groups Projects
Commit 43e64d7c authored by Arnaud Levy's avatar Arnaud Levy
Browse files

climate

parent aa2ab77b
No related branches found
No related tags found
No related merge requests found
......@@ -156,7 +156,7 @@ class Communication::Website::Agenda::Event < ApplicationRecord
title: "#{title} #{subtitle}",
url: url,
description: summary,
all_day: all_day?
all_day: (from_hour.nil? && to_hour.nil?)
)
end
......@@ -187,10 +187,6 @@ class Communication::Website::Agenda::Event < ApplicationRecord
end
end
def all_day?
from_hour.nil? && to_hour.nil?
end
def date_and_time(date, time)
Time.new(date.year, date.month, date.day, time.hour, time.min, time.sec, time.zone)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment