You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Use resolvedOptions().hour12 instead of whitespace heuristic for
browser hour cycle detection
- Pass hourCycle directly to Intl.DateTimeFormat instead of converting
to hour12, preserving h11/h12/h23/h24 distinctions
- Remove isHour12() helper, no longer needed
- Validate hourCycle getter against allowed values
- Add positive assertion to h24 test
- Fix README formatting for hourCycle default value
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|`timeZone`|`time-zone`|`string\|undefined`| Browser default time zone |
78
-
|`hourCycle`|`hour-cycle`|`'h11'\|'h12'\|'h23'\|'h24'\|undefined`| 'h12' or 'h23' based on browser|
78
+
|`hourCycle`|`hour-cycle`|`'h11'\|'h12'\|'h23'\|'h24'\|undefined`|`'h12'` or `'h23'` based on browser |
79
79
|`noTitle`|`no-title`|`-`|`-`|
80
80
81
81
<sup>\*</sup>: If unspecified, `formatStyle` will return `'narrow'` if `format` is `'elapsed'` or `'micro'`, `'short'` if the format is `'relative'` or `'datetime'`, otherwise it will be `'long'`.
0 commit comments