From 6f69a92b7a5b0970a3ddcee9cbe4909d34a13b61 Mon Sep 17 00:00:00 2001 From: Cristen Jones Date: Fri, 13 Oct 2023 11:32:05 -0400 Subject: [PATCH] fix(Service): correct parsing to YYYY-MM-DD --- apps/services/lib/service.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/services/lib/service.ex b/apps/services/lib/service.ex index 586be40643..41c2d7be7c 100644 --- a/apps/services/lib/service.ex +++ b/apps/services/lib/service.ex @@ -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