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
|`timeZone`|`time-zone`|`string\|undefined`| Browser default time zone |
83
84
|`noTitle`|`no-title`|`-`|`-`|
84
85
85
86
<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'`.
@@ -139,6 +140,19 @@ The `duration` format will display the time remaining (or elapsed time) from the
139
140
-`4 hours`
140
141
-`8 days, 30 minutes, 1 second`
141
142
143
+
##### time-zone (`string`)
144
+
145
+
The`time-zone` attribute allows you to specify the IANA time zone name (e.g., `America/New_York`, `Europe/London`) used for formatting the date and time.
146
+
147
+
You can set the time zone either as an attribute or property:
If the individual element does not have a `time-zone` attribute then it will traverse upwards in the tree to find the closest element that does, or default the `time-zone` to the browsers default.
0 commit comments