From 990e744d00d0a1e53063bd8a13a5db5c8d4b3199 Mon Sep 17 00:00:00 2001 From: Elia Schito Date: Wed, 13 Sep 2023 10:20:15 +0200 Subject: [PATCH] Parse time using the current zone --- backend/spec/helpers/admin/base_helper_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/spec/helpers/admin/base_helper_spec.rb b/backend/spec/helpers/admin/base_helper_spec.rb index 2dc5a431cc0..da3e78834a3 100644 --- a/backend/spec/helpers/admin/base_helper_spec.rb +++ b/backend/spec/helpers/admin/base_helper_spec.rb @@ -12,7 +12,7 @@ end it "should return a formatted date when date is present" do - date = "2013-08-14".to_time + date = Time.zone.parse("2013-08-14") expect(datepicker_field_value(date)).to eq("2013/08/14") end end