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

Merge branch 'release/12.3' into dev

ulfertse8c55b5e7ae4
diff --cc spec/constants/settings/definition_spec.rb
index 385e6dfe97d,55bda139ad8..5baf877a6af
--- a/spec/constants/settings/definition_spec.rb
+++ b/spec/constants/settings/definition_spec.rb
@@@ -147,9 -160,17 +147,17 @@@ describe Settings::Definition d
stub_const('ENV', { 'OPENPROJECT_CONSENT__TIME' => '2222-01-01' })
expect(all.detect { |d| d.name == 'consent_time' }.value)
- .to eql Date.parse('2222-01-01')
+ .to eql DateTime.parse('2222-01-01')
end
+ it 'overriding timezone configuration from ENV will cast the value' do
+ stub_const('ENV', { 'OPENPROJECT_USER__DEFAULT__TIMEZONE' => 'Europe/Berlin' })
+
+ value = all.detect { |d| d.name == 'user_default_timezone' }.value
+ expect(value).to be_a ::ActiveSupport::TimeZone
+ expect(value.name).to eq 'Berlin'
+ end
+
it 'overriding configuration from ENV will set it to non writable' do
stub_const('ENV', { 'OPENPROJECT_EDITION' => 'bim' })