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
Fix test failing in some time zones
Christophe Bliardd19fe761cd58
diff --git a/app/workers/notifications/schedule_date_alerts_notifications_job/service.rb b/app/workers/notifications/schedule_date_alerts_notifications_job/service.rbindex 384c424a4ef..97a4fbfd6cd 100644--- a/app/workers/notifications/schedule_date_alerts_notifications_job/service.rb+++ b/app/workers/notifications/schedule_date_alerts_notifications_job/service.rb@@ -52,6 +52,7 @@ class Notifications::ScheduleDateAlertsNotificationsJob::Service.assignable_time_zones.select { |time_zone| executing_at_1am_for_timezone?(time_zone) }.map { |time_zone| time_zone.tzinfo.canonical_zone.name }+ .uniqenddef executing_at_1am_for_timezone?(time_zone)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 9da3edc2037..a10312ca472 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@@ -18,7 +18,7 @@ RSpec.describe "Notification center date alerts",shared_let(:time_zone) { find_compatible_local_time_zone }shared_let(:user) do- create(:user, preferences: { time_zone: time_zone.tzinfo.name }).tap do |user|+ create(:user, preferences: { time_zone: time_zone.tzinfo.canonical_zone.name }).tap do |user|user.notification_settings.first.update(start_date: 7,due_date: 3,