From 70d1888cc23f25176c3c297e8f0fe28186a91b13 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Tue, 8 Dec 2020 11:36:15 +1100 Subject: [PATCH] Ease reading of times --- lib/tasks/subscriptions/test.rake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/tasks/subscriptions/test.rake b/lib/tasks/subscriptions/test.rake index 55145d3d03..ca618c799d 100644 --- a/lib/tasks/subscriptions/test.rake +++ b/lib/tasks/subscriptions/test.rake @@ -12,8 +12,8 @@ namespace :ofn do # Open Order Cycle by moving close_at to the future and open_at to the past set_order_cycle_times(order_cycle_id, - Time.zone.now - 15.minutes, - Time.zone.now + 15.minutes) + 15.minutes.ago, + 15.minutes.from_now) # Reset Proxy Orders of the Order Cycle # by detatching them from existing orders and resetting placed and confirmed dates @@ -34,8 +34,8 @@ namespace :ofn do # Close Orde Cycle by moving close_at to the past set_order_cycle_times(order_cycle_id, - Time.zone.now - 30.minutes, - Time.zone.now - 15.minutes) + 30.minutes.ago, + 15.minutes.from_now) # Run Confirm Job to process payments SubscriptionConfirmJob.new.perform