From d08fa4e375748f0f2232ea75645cb15126155047 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Thu, 10 Oct 2024 20:26:24 +0200 Subject: Updates for Ramaskrik 2024 - Don't hardcode year, use todays year instead. - Move output to separate build dir to make it a bit cleaner. - Misc fixes to set correct timezone in .ics file (still hardcoded, though...) --- lib/events.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/events.rb b/lib/events.rb index e647930..de9af64 100644 --- a/lib/events.rb +++ b/lib/events.rb @@ -21,6 +21,10 @@ module Events @start_time.to_date end + def end_time + @start_time + @duration + end + def slug "#{start_time.to_i}-#{title.downcase.gsub(/[^a-z0-9_-]/, '')}" end -- cgit v1.2.3