[Mono-bugs] [Bug 558604] New: CultureInfo.CurrentCulture does not return the correct culture of the Device
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Nov 26 00:02:32 EST 2009
http://bugzilla.novell.com/show_bug.cgi?id=558604
http://bugzilla.novell.com/show_bug.cgi?id=558604#c0
Summary: CultureInfo.CurrentCulture does not return the correct
culture of the Device
Classification: Mono
Product: MonoTouch
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Major
Priority: P5 - None
Component: Class Libraries
AssignedTo: gnorton at novell.com
ReportedBy: thaoula at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729;
Media Center PC 6.0; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; InfoPath.2)
I am trying to use CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern
to obtain the local specific short date pattern.
I am in Australia and I have configured my iPhone device for Australia so I was
expecting the ShortDatePattern to be dd/MM/yyyy. However, the call to
ShortDatePattern is returning MM/dd/yyyy (US Format).
Reproducible: Always
Steps to Reproduce:
1. var format = CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern;
2. console.writeline(date.ToString(format)); // Date = 01/11/2009 (AUS format)
Actual Results:
11/01/2009
Expected Results:
01/11/2009
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list