Merging backout
authorBlake Kaplan <mrbkap@gmail.com>
Wed, 23 Jul 2008 13:20:41 -0400
changeset 16148 403582828a52ea820cc2128b023efa2c163ae77d
parent 16146 41d5a8915ca2c03a0b1255b3f8ff13215e67b154 (current diff)
parent 16147 0e003f43fcfd75f085581d20d05db977cd2c1573 (diff)
child 16149 7afdded71629633aafc53e73766a6a98c34172cd
child 16155 abd8bf7d25ca78c8915fac8623044e576d5977e5
push idunknown
push userunknown
push dateunknown
milestone1.9.1a2pre
Merging backout
--- 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;