> Urgh. Probably my fault but I believe it will always append + now
> because we moved it just after the statement to make offset absolute.

Ok, fixed this.

/Sven

2005-02-18  Sven de Marothy <[EMAIL PROTECTED]>

        * java/util/TimeZone.java,
        (getDefaultDisplayName): Fix previous fix.

Index: java/util/TimeZone.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/util/TimeZone.java,v
retrieving revision 1.30
diff -u -r1.30 TimeZone.java
--- java/util/TimeZone.java	18 Feb 2005 14:49:36 -0000	1.30
+++ java/util/TimeZone.java	18 Feb 2005 16:54:38 -0000
@@ -1108,9 +1108,9 @@
     StringBuffer sb = new StringBuffer(9);
     sb.append("GMT");
 
-    offset = Math.abs(offset) / (1000 * 60);
-    int hours = offset / 60;
-    int minutes = offset % 60;
+    offset = offset / (1000 * 60);
+    int hours = Math.abs(offset) / 60;
+    int minutes = Math.abs(offset) % 60;
 
     if (minutes != 0 || hours != 0)
       {
_______________________________________________
Classpath-patches mailing list
Classpath-patches@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to