[Mono-bugs] [Bug 345057] DateTime unspecified-to-localtime conversions different between mono and . net
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Apr 9 08:49:48 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=345057
User Rutton.Rankin at gmx.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=345057#c1
--- Comment #1 from Rutton Rankin <Rutton.Rankin at gmx.de> 2008-04-09 06:49:47 MST ---
The problem with parsing has an additional sideaspect.
A datetime string with an timezone info with it, like ISO-8601
numeric encoding in UTC, gives the correct results with localtime GMT+1.
Net( tested with 3.5):
This is ISO-8601 with UTC:
TryParse 2006-02-01T14:29:53Z -> 2.1.2006 15:29:53 , Kind = Local
This is a DateTime format without specifying a timezone:
TryParse 2007/02/01 10:29:10 -> 2.1.2007 10:29:10 , Kind = Unspecified
Mono JIT compiler version 1.9:
TryParse 2006-02-01T14:29:53Z -> 2.1.2006 15:29:53 , Kind = Local
TryParse 2007/02/01 10:29:10 -> 2.1.2007 10:29:10 , Kind = Local
--
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.
More information about the mono-bugs
mailing list