Skip to content

Commit

Permalink
fix: update timezones property when calling setOptions method (fix #…
Browse files Browse the repository at this point in the history
  • Loading branch information
Dohyung Ahn authored Jan 5, 2022
1 parent 2323b64 commit e6679a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/factory/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1822,6 +1822,10 @@ Calendar.prototype.setOptions = function(options, silent) {

this._setAdditionalInternalOptions(options);

if (util.isObject(options.timezone) && util.isArray(options.timezone.zones)) {
this._options.timezones = options.timezone.zones;
}

if (!silent) {
this.changeView(this._viewName, true);
}
Expand Down

0 comments on commit e6679a2

Please sign in to comment.