File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ function amend(options = {}, amended = {}) {
152
152
'minute' ,
153
153
'second' ,
154
154
'weekday' ,
155
+ 'dayPeriod' ,
155
156
'timeZoneName' ,
156
157
'dateStyle' ,
157
158
'timeStyle'
@@ -188,6 +189,7 @@ function yearMonthAmend(options) {
188
189
minute : false ,
189
190
second : false ,
190
191
weekday : false ,
192
+ dayPeriod : false ,
191
193
timeZoneName : false ,
192
194
dateStyle : false ,
193
195
timeStyle : false
@@ -205,6 +207,7 @@ function monthDayAmend(options) {
205
207
minute : false ,
206
208
second : false ,
207
209
weekday : false ,
210
+ dayPeriod : false ,
208
211
timeZoneName : false ,
209
212
dateStyle : false ,
210
213
timeStyle : false
@@ -220,6 +223,7 @@ function dateAmend(options) {
220
223
hour : false ,
221
224
minute : false ,
222
225
second : false ,
226
+ dayPeriod : false ,
223
227
timeZoneName : false ,
224
228
timeStyle : false
225
229
} ) ;
@@ -282,7 +286,9 @@ function hasDateOptions(options) {
282
286
}
283
287
284
288
function hasTimeOptions ( options ) {
285
- return 'hour' in options || 'minute' in options || 'second' in options || 'timeStyle' in options ;
289
+ return (
290
+ 'hour' in options || 'minute' in options || 'second' in options || 'timeStyle' in options || 'dayPeriod' in options
291
+ ) ;
286
292
}
287
293
288
294
function isTemporalObject ( obj ) {
You can’t perform that action at this time.
0 commit comments