[Mono-bugs] [Bug 60974][Wis] New - System.DateTimeFormatInfo Does not honour literal escaping properly.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 1 Jul 2004 06:38:40 -0400 (EDT)

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 kevin@loose-screws.com.


--- shadow/60974	2004-07-01 06:38:40.000000000 -0400
+++ shadow/60974.tmp.28213	2004-07-01 06:38:40.000000000 -0400
@@ -0,0 +1,52 @@
+Bug#: 60974
+Product: Mono: Class Libraries
+Version: unspecified
+OS Details: Fedora Core 2
+Status: NEW   
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: kevin@loose-screws.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: System.DateTimeFormatInfo Does not honour literal escaping properly.
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+Steps to reproduce the problem:
+1. Use this code in C#:
+DateTime ModifiedDate = DateTime.Now;
+Console.WriteLine( ModifiedDate.ToString( "yyyy-MM-dd\THH-mm-ss\Z" ) );
+Console.WriteLine( ModifiedDate.ToString( "yyyy-MM-dd\\THH-mm-ss\\" ) );
+2. Compile
+3. Run.
+Actual Results:
+Results gotten for the first WriteLine is an error. a second slash is
+needed, when the documentation on MSDN clearly denotes a singular slash
+followed by the literal.
+The second result returns no slashes, when it should. Again, an extra slash
+is needed.
+Expected Results:
+A Date with a the chars T and Z somewhere in it. Second Date with two
+slashes in it.
+How often does this happen? 
+Additional Information:
+bug affects the Release Candidate (1.0) and 1.0