Skip to content

Commit

Permalink
Update test/intl402/DateTimeFormat/prototype/resolvedOptions/hourCycl…
Browse files Browse the repository at this point in the history
…e-default.js

Co-authored-by: Ms2ger <[email protected]>
  • Loading branch information
ben-allen and Ms2ger authored Aug 28, 2023
1 parent 0425c1c commit 73ad7cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let locales = ["en", "fr", "it", "ja", "ja-u-hc-h11", "zh", "ko", "ar", "hi", "e

locales.forEach(function(locale){
let hcDefault = new Intl.DateTimeFormat(locale, {hour: "numeric"}).resolvedOptions().hourCycle;
if (hcDefault === "h11" || hcDefault === "h12"){
if (hcDefault === "h11" || hcDefault === "h12") {
assert.sameValue(new Intl.DateTimeFormat(locale, {hour: "numeric", hour12: true}).resolvedOptions().hourCycle, hcDefault);

// no locale has "h24" as a default. see https://github.com/tc39/ecma402/pull/758#issue-1622377292
Expand Down

0 comments on commit 73ad7cf

Please sign in to comment.