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