From fe65839f13c488153583bcd4d7cdf6caf545557e Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Tue, 18 Dec 2018 08:49:27 +0100 Subject: [PATCH] optional index_time in rake task --- lib/tasks/doi.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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