From cd16e8527cfbad342d5ac7951dc2e1676e742135 Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Sat, 21 Aug 2021 19:13:26 +0100 Subject: [PATCH] Sets OC-times in relation to the Zone time --- .../admin/order_cycles/complex_creating_specific_time_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/admin/order_cycles/complex_creating_specific_time_spec.rb b/spec/features/admin/order_cycles/complex_creating_specific_time_spec.rb index 0b90c2d9cf..641cec4585 100644 --- a/spec/features/admin/order_cycles/complex_creating_specific_time_spec.rb +++ b/spec/features/admin/order_cycles/complex_creating_specific_time_spec.rb @@ -10,8 +10,8 @@ feature ' include AuthenticationHelper include WebHelper - let(:order_cycle_opening_time) { Time.zone.local(2040, 11, 0o6, 0o6, 0o0, 0o0) } - let(:order_cycle_closing_time) { Time.zone.local(2040, 11, 13, 17, 0o0, 0o0) } + let(:order_cycle_opening_time) { 1.day.from_now(Time.zone.now) } + let(:order_cycle_closing_time) { 2.day.from_now(Time.zone.now) } scenario "creating an order cycle with full interface", js: true do # Given coordinating, supplying and distributing enterprises with some products with variants