Skip to content

Commit

Permalink
fix: date bug
Browse files Browse the repository at this point in the history
  • Loading branch information
joaodiaslobo committed Nov 4, 2024
1 parent 9b4a494 commit a04898d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/safira/event.ex
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ defmodule Safira.Event do
Constants.set("event_end_date", date)
end

defp ensure_date(string) when is_binary(string), do: Date.from_iso8601(string)
defp ensure_date(string) when is_binary(string), do: Date.from_iso8601!(string)

defp ensure_date(date), do: date
end

0 comments on commit a04898d

Please sign in to comment.