Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Ensure friendly_timezone_name receives an input

Oliver Günther02ac60a655fa
diff --git a/modules/meeting/app/forms/meeting/time_group.rb b/modules/meeting/app/forms/meeting/time_group.rb
index d561e52a324..927cce0eaf0 100644
--- a/modules/meeting/app/forms/meeting/time_group.rb
+++ b/modules/meeting/app/forms/meeting/time_group.rb
@@ -118,7 +118,7 @@ class Meeting::TimeGroup < ApplicationForm
def timezone_caption
return if editing_recurring?
- friendly_timezone_name(User.current.time_zone, period: @meeting.start_time)
+ friendly_timezone_name(User.current.time_zone, period: @meeting.start_time || Time.zone.now)
end
def editing_recurring?