From 43e64d7c614ff227e9a003eb23574cf55452ca47 Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Wed, 27 Dec 2023 18:31:46 +0100
Subject: [PATCH] climate

---
 app/models/communication/website/agenda/event.rb | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/app/models/communication/website/agenda/event.rb b/app/models/communication/website/agenda/event.rb
index f23aaa114..d8066aa58 100644
--- a/app/models/communication/website/agenda/event.rb
+++ b/app/models/communication/website/agenda/event.rb
@@ -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
-- 
GitLab