Skip to content

Commit

Permalink
Use new shift_time helper
Browse files Browse the repository at this point in the history
  • Loading branch information
dimakula committed Jan 3, 2024
1 parent c695275 commit 7fee206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cocktail/validation/shift.ex
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ defmodule Cocktail.Validation.Shift do
defp maybe_dst_change(new_time, _time), do: new_time

defp maybe_shift_time(new_time, time, dst_diff) do
shifted_time = shift(new_time, seconds: -dst_diff)
shifted_time = shift_time(new_time, seconds: -dst_diff)

case DateTime.compare(shifted_time, time) do
:eq -> new_time

Check warning on line 52 in lib/cocktail/validation/shift.ex

View check run for this annotation

Codecov / codecov/patch

lib/cocktail/validation/shift.ex#L52

Added line #L52 was not covered by tests
Expand Down

0 comments on commit 7fee206

Please sign in to comment.