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

Fix select options to use UTC instead of GMT

Klaus Zanders081d3b3e9ecd
diff --git a/spec/features/users/my_spec.rb b/spec/features/users/my_spec.rb
index e4c12fe01ad..5104090557d 100644
--- a/spec/features/users/my_spec.rb
+++ b/spec/features/users/my_spec.rb
@@ -114,11 +114,11 @@ describe 'my', js: true do
expect(user.pref.time_zone).to eq 'Asia/Tokyo'
visit my_settings_path
- expect(page).to have_select 'pref_time_zone', selected: '(GMT+09:00) Tokyo'
- select '(GMT+01:00) Paris', from: 'pref_time_zone'
+ expect(page).to have_select 'pref_time_zone', selected: '(UTC+09:00) Tokyo'
+ select '(UTC+01:00) Paris', from: 'pref_time_zone'
click_on 'Save'
- expect(page).to have_select 'pref_time_zone', selected: '(GMT+01:00) Paris'
+ expect(page).to have_select 'pref_time_zone', selected: '(UTC+01:00) Paris'
expect(user.pref.time_zone).to eq 'Europe/Paris'
end
end