Skip to content

Commit

Permalink
Default config DateTime constructor
Browse files Browse the repository at this point in the history
Set default value for config in DateTime constructor
  • Loading branch information
jmostaer committed Jul 13, 2023
1 parent 57aad3f commit af6f3c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datetime.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ export default class DateTime {
/**
* @access private
*/
constructor(config) {
constructor(config = {}) {
const zone = config.zone || Settings.defaultZone;

let invalid =
Expand Down

0 comments on commit af6f3c2

Please sign in to comment.