Bug 1172609 - Part 7: Hal calls nsJSUtils::ResetTimeZone() when timezone changes. r=dhylands
authorTed Clancy <tclancy@mozilla.com>
Mon, 15 Jun 2015 01:25:57 -0700
changeset 259044 811e0e236714935d17e7cfc493e499c83a0a8fef
parent 259043 382365abacdec3ca2558667f37ef0aab7a7c929f
child 259045 37d99d80d58b100b8d141c2e6bfe0d41fb4d2086
push id14810
push userryanvm@gmail.com
push dateTue, 25 Aug 2015 00:58:35 +0000
treeherderfx-team@04b8c412d9f5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdhylands
bugs1172609
milestone43.0a1
Bug 1172609 - Part 7: Hal calls nsJSUtils::ResetTimeZone() when timezone changes. r=dhylands
hal/Hal.cpp
--- a/hal/Hal.cpp
+++ b/hal/Hal.cpp
@@ -17,16 +17,17 @@
 #include "nsIDOMWindow.h"
 #include "mozilla/Services.h"
 #include "nsIWebNavigation.h"
 #include "nsITabChild.h"
 #include "nsIDocShell.h"
 #include "mozilla/StaticPtr.h"
 #include "mozilla/ClearOnShutdown.h"
 #include "WindowIdentifier.h"
+#include "nsJSUtils.h"
 #include "mozilla/dom/ScreenOrientation.h"
 #include "mozilla/dom/ContentChild.h"
 #include "mozilla/dom/ContentParent.h"
 
 #ifdef XP_WIN
 #include <process.h>
 #define getpid _getpid
 #endif
@@ -480,16 +481,17 @@ UnregisterSystemTimezoneChangeObserver(S
 {
   AssertMainThread();
   sSystemTimezoneChangeObservers.RemoveObserver(aObserver);
 }
 
 void
 NotifySystemTimezoneChange(const SystemTimezoneChangeInformation& aSystemTimezoneChangeInfo)
 {
+  nsJSUtils::ResetTimeZone();
   sSystemTimezoneChangeObservers.BroadcastInformation(aSystemTimezoneChangeInfo);
 }
 
 void 
 AdjustSystemClock(int64_t aDeltaMilliseconds)
 {
   AssertMainThread();
   PROXY_IF_SANDBOXED(AdjustSystemClock(aDeltaMilliseconds));