[Mono-bugs] [Bug 24991] Changed - Hour not correct converting to String
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
20 May 2002 18:03:19 -0000
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by loz@cable.a2000.nl.
http://bugzilla.ximian.com/show_bug.cgi?id=24991
--- shadow/24991 Mon May 20 13:42:34 2002
+++ shadow/24991.tmp.19466 Mon May 20 14:03:19 2002
@@ -1,14 +1,14 @@
Bug#: 24991
Product: Mono/Class Libraries
Version: unspecified
OS: All
OS Details:
-Status: NEW
-Resolution:
-Severity:
+Status: RESOLVED
+Resolution: NOTABUG
+Severity: Unknown
Priority: Minor
Component: System
AssignedTo: mono-bugs@ximian.com
ReportedBy: danmorg@sc.rr.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -43,6 +43,13 @@
StringBuilder sb = new StringBuilder();
Console.WriteLine("Hour from DateTime: " + dt.Hour); // result: 8
const char zero = '0'; // zero
sb.Append(zero + dt.Hour);
Console.WriteLine("Hour from StringBuilder: " + sb); // result: 56
+
+------- Additional Comments From loz@cable.a2000.nl 2002-05-20 14:03 -------
+That's correct behaviour. You're adding a char to an int, which is an
+int. Implementation of ms.net also reports 56 for the example given.
+
+Greets,
+Lawrence