From b2108e1e0d3924a969233b8917a5eddd5b78dd9e Mon Sep 17 00:00:00 2001 From: Cristen Jones Date: Mon, 6 Jan 2025 13:53:05 -0500 Subject: [PATCH] fix(TripPlanner.ResultsSummary): use ordinal date --- lib/dotcom_web/components/trip_planner/results_summary.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dotcom_web/components/trip_planner/results_summary.ex b/lib/dotcom_web/components/trip_planner/results_summary.ex index 8ab42e8acd..630de8de6e 100644 --- a/lib/dotcom_web/components/trip_planner/results_summary.ex +++ b/lib/dotcom_web/components/trip_planner/results_summary.ex @@ -56,7 +56,7 @@ defmodule DotcomWeb.Components.TripPlanner.ResultsSummary do defp time_summary(%{datetime: datetime, datetime_type: datetime_type}) do preamble = if datetime_type == "arrive_by", do: "Arriving by ", else: "Leaving at " time_description = Timex.format!(datetime, "{h12}:{m}{am}") - date_description = Timex.format!(datetime, "{WDfull}, {Mfull} {D}") - preamble <> time_description <> " on " <> date_description + date_description = Timex.format!(datetime, "{WDfull}, {Mfull} ") + preamble <> time_description <> " on " <> date_description <> Inflex.ordinalize(datetime.day) end end