Bug 1586486 - When timezone changes, keep Today Pane day in sync. r=pmorris
authorGeoff Lankow <geoff@darktrojan.net>
Wed, 09 Oct 2019 10:32:06 +1300
changeset 27890 1318ff6834a0a96292bf9769a1efe96a8362d4e2
parent 27889 54835cf69aed78ca16fee5c4a1d41b2fe29907e6
child 27891 f6d43522feaca6cc1e9d37e5c7085ec6873c7b61
push id16537
push usermozilla@jorgk.com
push dateThu, 10 Oct 2019 07:04:18 +0000
treeherdercomm-central@55f15b85ce9b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspmorris
bugs1586486
Bug 1586486 - When timezone changes, keep Today Pane day in sync. r=pmorris
calendar/base/content/today-pane.js
--- a/calendar/base/content/today-pane.js
+++ b/calendar/base/content/today-pane.js
@@ -58,17 +58,17 @@ var TodayPane = {
     Services.obs.removeObserver(TodayPane, "defaultTimezoneChanged");
   },
 
   /**
    * React if the default timezone changes.
    */
   observe: function() {
     if (this.start !== null) {
-      this.setDay(this.start);
+      this.setDay(this.start.getInTimezone(cal.dtz.defaultTimezone));
     }
   },
 
   /**
    * Sets up the label for the switcher that allows switching between today pane
    * views. (event+task, task only, event only)
    */
   updateDisplay: function() {