Skip to content

Commit

Permalink
optional index_time in rake task
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Dec 18, 2018
1 parent 7022102 commit fe65839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/doi.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe65839

Please sign in to comment.