diff --git a/polyfill/lib/intl.mjs b/polyfill/lib/intl.mjs index cb56addf0..4a186851b 100644 --- a/polyfill/lib/intl.mjs +++ b/polyfill/lib/intl.mjs @@ -137,6 +137,11 @@ function createDateTimeFormat(dtf, locale, options) { for (const prop in clonedResolved) { if (!ES.HasOwnProperty(options, prop)) delete clonedResolved[prop]; } + // hour12/hourCycle don't show up in resolvedOptions() unless the chosen + // format includes an hour component, so copy them explicitly in case they + // would otherwise be lost + clonedResolved.hour12 = options.hour12; + clonedResolved.hourCycle = options.hourCycle; SetSlot(dtf, OPTIONS, clonedResolved); } else { SetSlot(dtf, OPTIONS, options);