From b28a25208102952bc47e0271b1937c2bd2378b1f Mon Sep 17 00:00:00 2001 From: tamsin johnson Date: Tue, 29 Aug 2023 13:11:43 -0700 Subject: [PATCH] use the Hyrax::TimeService to set the embargo release time --- app/services/hyrax/embargo_manager.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/hyrax/embargo_manager.rb b/app/services/hyrax/embargo_manager.rb index 4d2ab367a5..d8c1757fa1 100644 --- a/app/services/hyrax/embargo_manager.rb +++ b/app/services/hyrax/embargo_manager.rb @@ -251,7 +251,7 @@ def release(force: false) embargo_state = embargo.active? ? 'active' : 'expired' history_record = embargo_history_message( embargo_state, - Time.zone.today, + Hyrax::TimeService.time_in_utc, embargo.embargo_release_date, embargo.visibility_during_embargo, embargo.visibility_after_embargo