[Mono-bugs] [Bug 56436][Nor] Changed - DateFormat.ParseExact() can't handle quoted chars
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 6 Apr 2004 08:13:39 -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 mail@martin-probst.com.
http://bugzilla.ximian.com/show_bug.cgi?id=56436
--- shadow/56436 2004-04-03 15:43:13.000000000 -0500
+++ shadow/56436.tmp.12525 2004-04-06 08:13:39.000000000 -0400
@@ -1,22 +1,22 @@
Bug#: 56436
Product: Mono: Class Libraries
Version: unspecified
-OS:
+OS: unknown
OS Details: gentoo
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Normal
Component: CORLIB
AssignedTo: mono-bugs@ximian.com
ReportedBy: mail@martin-probst.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
-Summary: DateFormat.ParseExact() doesn't work as expected
+Summary: DateFormat.ParseExact() can't handle quoted chars
Description of Problem:
I'm trying to parse a string into a DateTime. For example an Apache
access_log with timestamps like:
"28/Mar/2004:19:12:37 +0200"
with this pattern "dd\"/\"MMM\"/\"yyyy:HH:mm:ss zz\"00\"". This works
@@ -45,6 +45,11 @@
Expected Results:
A parsed DateTime object.
How often does this happen?
Always
+
+------- Additional Comments From mail@martin-probst.com 2004-04-06 08:13 -------
+The problem seems to be the quotes in the string. If you run the same
+app without the quotes (e.g., remove all \"/\" from the format string)
+it works.