Skip to content

Commit

Permalink
fix: display midday booking as "12:00 pm" not "0:00 pm"
Browse files Browse the repository at this point in the history
fixes #9
  • Loading branch information
olliestone committed Oct 8, 2023
1 parent 576e31f commit 5018d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/bookings/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export default catchErrorsFrom(async (req, res) => {
}).format(datetime),
time_long: new Intl.DateTimeFormat("en-GB", {
hour: "numeric",
hour12: true,
hourCycle: "h12",
minute: "2-digit",
timeZone: "Europe/London",
}).format(datetime),
Expand Down

0 comments on commit 5018d71

Please sign in to comment.