https://bugzilla.novell.com/show_bug.cgi?id=403409
Summary: DateTimeOffset.ParseExact cannot deal with certain
inputs
Product: Mono: Class Libraries
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: ---
In microsoft .net 3.5, the following works:
DateTimeOffset.ParseExact("20080616_0126_-0900", "yyyyMMdd_HHmm_zzz",
CultureInfo.InvariantCulture).ToString()
"2008-06-16 1:26:00 -09:00"
In Mono, this fails with FormatException. Apparently, the code assumes that
there's some separator/whitespace after the year, as it tries to parse 5 digits
even if the format specifier is yyyy. Also, it wants a ':' between the hour
and minute portion of the offset.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs