Skip to content

Commit 96cb9c5

Browse files
committed
update comment
1 parent 85a9943 commit 96cb9c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/relative-time-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function getUnitFactor(el: RelativeTimeElement): number {
3535
// Determine whether the user has a 12 (vs. 24) hour cycle preference. This relies on the hour formatting in
3636
// a 12 hour preference being formatted like "1 AM" including a space, while with a 24 hour preference, the
3737
// same is formatted as "01" without a space. In the future `Intl.Locale.prototype.getHourCycles()` could be
38-
// used but in my testing it incorrectly returned a 12 hour preference with MacOS set to 24 hour format.
38+
// used but it is not as well-supported as this method.
3939
function isBrowser12hCycle() {
4040
return Boolean(/\s/.exec(new Intl.DateTimeFormat([], {hour: 'numeric'}).format(0)))
4141
}

0 commit comments

Comments
 (0)