Skip to content

Commit af6f3c2

Browse files
authored
Default config DateTime constructor
Set default value for config in DateTime constructor
1 parent 57aad3f commit af6f3c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datetime.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ export default class DateTime {
432432
/**
433433
* @access private
434434
*/
435-
constructor(config) {
435+
constructor(config = {}) {
436436
const zone = config.zone || Settings.defaultZone;
437437

438438
let invalid =

0 commit comments

Comments
 (0)