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

Rubocop

Oliver Günther47dd83b6f682
diff --git a/modules/team_planner/spec/features/team_planner_spec.rb b/modules/team_planner/spec/features/team_planner_spec.rb
index 5c0916cc794..4cc5574694f 100644
--- a/modules/team_planner/spec/features/team_planner_spec.rb
+++ b/modules/team_planner/spec/features/team_planner_spec.rb
@@ -82,8 +82,8 @@ describe 'Team planner', type: :feature, js: true do
project: project,
type: type_task,
assigned_to: other_user,
- start_date: Date.today - 1.day,
- due_date: Date.today + 1.day,
+ start_date: Time.zone.today - 1.day,
+ due_date: Time.zone.today + 1.day,
subject: 'A task for the other user'
end
let!(:other_bug) do
@@ -91,8 +91,8 @@ describe 'Team planner', type: :feature, js: true do
project: project,
type: type_bug,
assigned_to: other_user,
- start_date: Date.today - 1.day,
- due_date: Date.today + 1.day,
+ start_date: Time.zone.today - 1.day,
+ due_date: Time.zone.today + 1.day,
subject: 'Another task for the other user'
end
let!(:user_bug) do
@@ -100,8 +100,8 @@ describe 'Team planner', type: :feature, js: true do
project: project,
type: type_bug,
assigned_to: user,
- start_date: Date.today - 10.days,
- due_date: Date.today + 20.days,
+ start_date: Time.zone.today - 10.days,
+ due_date: Time.zone.today + 20.days,
subject: 'A task for the logged in user'
end