Backed out changeset 084567d3ebe6. It actually made us not comply with ECMAScript 3.
authorBlake Kaplan <mrbkap@gmail.com>
Wed, 23 Jul 2008 13:19:44 -0400
changeset 16147 0e003f43fcfd75f085581d20d05db977cd2c1573
parent 16144 084567d3ebe69672e9d31d38937748250af1dc7c
child 16148 403582828a52ea820cc2128b023efa2c163ae77d
push idunknown
push userunknown
push dateunknown
milestone1.9.1a2pre
backs out084567d3ebe69672e9d31d38937748250af1dc7c
Backed out changeset 084567d3ebe6. It actually made us not comply with ECMAScript 3.
js/src/jsdate.cpp
--- a/js/src/jsdate.cpp
+++ b/js/src/jsdate.cpp
@@ -1249,17 +1249,17 @@ date_getTimezoneOffset(JSContext *cx, ui
     if (!GetAndCacheLocalTime(cx, obj, NULL, &localtime))
         return JS_FALSE;
 
     /*
      * Return the time zone offset in minutes for the current locale that is
      * appropriate for this time. This value would be a constant except for
      * daylight savings time.
      */
-    result = (localtime - utctime) / msPerMinute;
+    result = (utctime - localtime) / msPerMinute;
     return js_NewNumberInRootedValue(cx, result, vp);
 }
 
 static JSBool
 date_setTime(JSContext *cx, uintN argc, jsval *vp)
 {
     jsdouble result;