Skip to content

Commit

Permalink
fix(Service): correct parsing to YYYY-MM-DD
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed Oct 13, 2023
1 parent d632823 commit 6f69a92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/services/lib/service.ex
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ defmodule Services.Service do
@spec parse_listed_dates([String.t()]) :: [NaiveDateTime.t()]
defp parse_listed_dates(date_strings) do
date_strings
|> Enum.map(&Timex.parse(&1, "{YYYY}-{0M}-{D}"))
|> Enum.map(&Timex.parse(&1, "{ISOdate}"))
|> Enum.filter(&(elem(&1, 0) == :ok))
|> Enum.map(&elem(&1, 1))
end
Expand Down

0 comments on commit 6f69a92

Please sign in to comment.