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

Set ActiveSupport.to_time_preserves_timezone = true

Christophe Bliard1c285eb14eb7
diff --git a/config/initializers/new_framework_defaults_5_0.rb b/config/initializers/new_framework_defaults_5_0.rb
index 966c630852d..c3122a8e6a0 100644
--- a/config/initializers/new_framework_defaults_5_0.rb
+++ b/config/initializers/new_framework_defaults_5_0.rb
@@ -22,7 +22,7 @@
# https://guides.rubyonrails.org/configuring.html#activesupport-to-time-preserves-timezone
# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`.
# Previous versions had false. Rails 5.0+ default is true.
-# ActiveSupport.to_time_preserves_timezone = true
+ActiveSupport.to_time_preserves_timezone = true
# https://guides.rubyonrails.org/configuring.html#config-active-record-belongs-to-required-by-default
# Require `belongs_to` associations by default. Previous versions had false.