diff --git a/lib/tasks/doi.rake b/lib/tasks/doi.rake index be3ce1cb1..6640f772e 100644 --- a/lib/tasks/doi.rake +++ b/lib/tasks/doi.rake @@ -60,7 +60,7 @@ namespace :doi do until_date = ENV['UNTIL_DATE'] || Date.current.strftime("%F") end - index_time = Time.zone.now.utc.iso8601 + index_time = ENV['INDEX_TIME'] || Time.zone.now.utc.iso8601 Doi.index(from_date: from_date, until_date: until_date, index_time: index_time) end