Skip to content

Commit

Permalink
use the Hyrax::TimeService to set the embargo release time
Browse files Browse the repository at this point in the history
  • Loading branch information
tamsin johnson committed Aug 29, 2023
1 parent 60fda00 commit b28a252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/hyrax/embargo_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b28a252

Please sign in to comment.