fix: date overrides missing minutes (#24753)

This commit is contained in:
Rajiv Sahal
2025-10-28 22:51:15 +00:00
committed by GitHub
parent 29a3892669
commit 268a142370
@@ -55,7 +55,7 @@ const DateOverrideList = ({
const timeSpan = ({ start, end }: TimeRange) => {
if (isPlatform) {
return `${formatInTimeZone(start, "UTC", "h a")} - ${formatInTimeZone(end, "UTC", "h a")}`;
return `${formatInTimeZone(start, "UTC", "h:mm a")} - ${formatInTimeZone(end, "UTC", "h:mm a")}`;
}
return `${new Intl.DateTimeFormat(i18n.language, { hour: "numeric", minute: "numeric", hour12 }).format(
@@ -136,7 +136,7 @@ const DateOverrideList = ({
data-testid="delete-button"
title={t("date_overrides_delete_on_date", {
date: isPlatform
? formatInTimeZone(new Date(item.ranges[0].start), "UTC", "h a")
? formatInTimeZone(new Date(item.ranges[0].start), "UTC", "h:mm a")
: new Intl.DateTimeFormat(i18n.language, {
weekday: "long",
month: "long",