Skip to content
This repository was archived by the owner on Dec 31, 2024. It is now read-only.

Commit 5ef6dc3

Browse files
authored
fix(datetime): support all key format object (#1571) (#1572)
1 parent c45cabd commit 5ef6dc3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/util.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ export const numberFormatKeys = [
2525
]
2626

2727
export const dateTimeFormatKeys = [
28+
'dateStyle',
29+
'timeStyle',
30+
'calender',
31+
'localeMatcher',
32+
"hour12",
33+
"hourCycle",
34+
"timeZone",
35+
"formatMatcher",
2836
'weekday',
2937
'era',
3038
'year',
@@ -33,7 +41,7 @@ export const dateTimeFormatKeys = [
3341
'hour',
3442
'minute',
3543
'second',
36-
'timeZoneName'
44+
'timeZoneName',
3745
]
3846

3947
/**

0 commit comments

Comments
 (0)