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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Account for Daylight Savings Time adjustements by `ActiveSupport`
Aaron Contreras84afee474e25
diff --git a/spec/features/notifications/notification_center/notification_center_date_alerts_spec.rb b/spec/features/notifications/notification_center/notification_center_date_alerts_spec.rbindex 94f2903d01f..eacd7093063 100644--- a/spec/features/notifications/notification_center/notification_center_date_alerts_spec.rb+++ b/spec/features/notifications/notification_center/notification_center_date_alerts_spec.rb@@ -8,8 +8,9 @@ RSpec.describe "Notification center date alerts", js: true, with_settings: { jou# Find an assignable time zone with the same UTC offset as the local time zonedef find_compatible_local_time_zonelocal_offset = Time.now.gmt_offset # rubocop:disable Rails/TimeZone- time_zone = UserPreferences::UpdateContract.assignable_time_zones.find { |tz| tz.utc_offset == local_offset }- .tap { p _1 }+ time_zone = UserPreferences::UpdateContract.assignable_time_zones+ .find { |tz| tz.now.utc_offset == local_offset }+ .tap { p _1 }time_zone or raise "Unable to find an assignable time zone with #{local_offset} seconds offset."end@@ -36,7 +37,7 @@ RSpec.describe "Notification center date alerts", js: true, with_settings: { jou# we need to pretend that the journal records have been created before that time.# https://github.com/opf/openproject/pull/11678#issuecomment-1328011996#- work_package.journals.update_all created_at: Time.zone.now.change(hour: 0, minute: 0)+ work_package.journals.update_all created_at: time_zone.now.change(hour: 0, minute: 0)work_packageend