calendar: Rebuild the calendar when the time zone changes
A time zone change can cause the date to change so we need to clear SpiderMonkey's time zone cache and rebuild the calendar. https://bugzilla.gnome.org/show_bug.cgi?id=678507
This commit is contained in:

committed by
Florian Müllner

parent
9822c4c1d6
commit
59fc26f821
@ -428,6 +428,13 @@ var Calendar = new Lang.Class({
|
||||
this.emit('selected-date-changed', new Date(this._selectedDate));
|
||||
},
|
||||
|
||||
updateTimeZone: function() {
|
||||
// The calendar need to be rebuilt after a time zone update because
|
||||
// the date might have changed.
|
||||
this._rebuildCalendar();
|
||||
this._update();
|
||||
},
|
||||
|
||||
_buildHeader: function() {
|
||||
let layout = this.actor.layout_manager;
|
||||
let offsetCols = this._useWeekdate ? 1 : 0;
|
||||
|
Reference in New Issue
Block a user