Skip to content

Commit

Permalink
fix(TripPlanner.ResultsSummary): use ordinal date
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed Jan 6, 2025
1 parent f4a7986 commit b2108e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dotcom_web/components/trip_planner/results_summary.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b2108e1

Please sign in to comment.