Bug 18052 - DateTime.Parse value stored incorrectly
Summary: DateTime.Parse value stored incorrectly
Alias: None
Product: Class Libraries
Classification: Mono
Component: mscorlib ()
Version: 3.2.x
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Marek Safar
Depends on:
Reported: 2014-02-27 10:05 UTC by Allie Miller
Modified: 2014-03-05 17:30 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Test Cases (1.09 KB, application/octet-stream)
2014-02-27 10:25 UTC, Dominique NORMAND

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Allie Miller 2014-02-27 10:05:13 UTC
*This issue was reported on behalf of a user*

When setting the Thailand (th-TH) culture, the DateTime.Parse value is stored incorrectly and DateTime.DayNames and DateTime.MonthNames are empty. For example DateTime.Parse(DateTime.Now).ToString() returns a Date with a year thats offset by 543.

*Versioning Information*
=== Xamarin Studio ===
Version 4.2.3 (build 59)
Installation UUID: c2b400db-3f67-481d-bf7a-3b6cfa29b0af
Runtime: Mono 3.2.6 ((no/9b58377)
GTK+ 2.24.23 theme: Raleigh
GTK# (
Package version: 302060000
=== Apple Developer Tools ===
Xcode 4.6.3 (2068)
Build 4H1503
=== Xamarin.iOS ===
Version: (Business Edition)
=== Operating System ===
Mac OS X 10.9.2
Comment 2 Dominique NORMAND 2014-02-27 10:25:23 UTC
Created attachment 6174 [details]
Test Cases
Comment 3 Marek Safar 2014-03-05 17:30:30 UTC
Parsing issue is fixed in master.

Missing names issue is more complex. We are using CLDR ( http://cldr.unicode.org/ ) as a source of data. Unfortunately, day and month names for this case were not contributed yet and therefore we have them as empty. You could contribute to CLDR project which would then cascade to mono later.