Skip to content

Commit

Permalink
Parse time using the current zone
Browse files Browse the repository at this point in the history
  • Loading branch information
elia authored and tvdeyen committed Nov 2, 2023
1 parent 9f99181 commit 990e744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/spec/helpers/admin/base_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 990e744

Please sign in to comment.