Remove negatives from z format; patch from Ed Thomson <ethomson@sourcegear.com>
authorMiguel de Icaza <miguel@gnome.org>
Wed, 23 Jul 2003 01:25:14 +0000 (01:25 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Wed, 23 Jul 2003 01:25:14 +0000 (01:25 -0000)
svn path=/trunk/mcs/; revision=16556

mcs/class/corlib/System/DateTime.cs

index 6c5f841bfd1b291552c96ca672d1672e5acab0bf..c8091b848b64323c5989473ee955e0b2acb8a573 100644 (file)
@@ -1278,13 +1278,13 @@ namespace System
                                        if (num == 0) {\r
                                                int offset = utcoffset.Hours;\r
                                                str = offset.ToString ("d");\r
-                                               str = String.Concat ((offset >= 0) ? "+" : "-", str);\r
+                                               str = String.Concat ((offset >= 0) ? "+" : "", str);\r
                                        } \r
                                        else if (num == 1) \r
                                        {\r
                                                int offset = utcoffset.Hours;\r
                                                str = offset.ToString ("d02");\r
-                                               str = String.Concat ((offset >= 0) ? "+" : "-", str);\r
+                                               str = String.Concat ((offset >= 0) ? "+" : "", str);\r
                                        } \r
                                        else if (num == 2) \r
                                        {\r
@@ -1293,7 +1293,7 @@ namespace System
                                                str = offhour.ToString ("d02");\r
                                                str = String.Concat (str, dfi.TimeSeparator);\r
                                                str = String.Concat (str, offminute.ToString ("d02"));\r
-                                               str = String.Concat ((offhour >= 0) ? "+" : "-", str);\r
+                                               str = String.Concat ((offhour >= 0) ? "+" : "", str);\r
                                                num = 2;\r
                                        }\r
                                        break;\r