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 = {}) {
152152 'minute' ,
153153 'second' ,
154154 'weekday' ,
155+ 'dayPeriod' ,
155156 'timeZoneName' ,
156157 'dateStyle' ,
157158 'timeStyle'
@@ -188,6 +189,7 @@ function yearMonthAmend(options) {
188189 minute : false ,
189190 second : false ,
190191 weekday : false ,
192+ dayPeriod : false ,
191193 timeZoneName : false ,
192194 dateStyle : false ,
193195 timeStyle : false
@@ -205,6 +207,7 @@ function monthDayAmend(options) {
205207 minute : false ,
206208 second : false ,
207209 weekday : false ,
210+ dayPeriod : false ,
208211 timeZoneName : false ,
209212 dateStyle : false ,
210213 timeStyle : false
@@ -220,6 +223,7 @@ function dateAmend(options) {
220223 hour : false ,
221224 minute : false ,
222225 second : false ,
226+ dayPeriod : false ,
223227 timeZoneName : false ,
224228 timeStyle : false
225229 } ) ;
@@ -282,7 +286,9 @@ function hasDateOptions(options) {
282286}
283287
284288function 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+ ) ;
286292}
287293
288294function isTemporalObject ( obj ) {
You can’t perform that action at this time.
0 commit comments