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

bump timecop

ulfertsf71e50f5fcde
diff --git a/Gemfile.lock b/Gemfile.lock
index 347c08fd537..0a74b911c86 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -934,7 +934,7 @@ GEM
test-prof (1.0.11)
thor (1.2.1)
tilt (2.0.11)
- timecop (0.9.5)
+ timecop (0.9.6)
timeout (0.3.0)
trailblazer-option (0.1.2)
ttfunk (1.7.0)
diff --git a/config/constants/settings/definition.rb b/config/constants/settings/definition.rb
index 6b5bcd7f436..dd7baa45859 100644
--- a/config/constants/settings/definition.rb
+++ b/config/constants/settings/definition.rb
@@ -90,7 +90,7 @@ module Settings
self.value = {} if value.nil?
value.deep_merge! other_value.deep_stringify_keys
elsif format == :datetime && !other_value.is_a?(DateTime)
- self.value = DateTime.parse(other_value)
+ self.value = DateTime.parse(other_value.to_s)
else
self.value = other_value
end
diff --git a/spec/constants/settings/definition_spec.rb b/spec/constants/settings/definition_spec.rb
index 28a7a7b0574..f7facd7012d 100644
--- a/spec/constants/settings/definition_spec.rb
+++ b/spec/constants/settings/definition_spec.rb
@@ -383,7 +383,7 @@ describe Settings::Definition do
smtp_address: 'test address'
sendmail_location: 'test location'
bogus: 'bogusvalue'
- consent_time: 2222-01-01
+ consent_time: '2222-01-01'
YAML
end