[Mono-bugs] [Bug 689106] New: DateTime.ToLongDateString() does not return locale's full long date
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Apr 21 11:13:29 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=689106
https://bugzilla.novell.com/show_bug.cgi?id=689106#c0
Summary: DateTime.ToLongDateString() does not return locale's
full long date
Classification: Mono
Product: Mono: Runtime
Version: 2.6.x
Platform: Other
OS/Version: RHEL 4
Status: NEW
Severity: Normal
Priority: P5 - None
Component: misc
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: cbutor at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=426129)
--> (http://bugzilla.novell.com/attachment.cgi?id=426129)
test source file that illustrates bug
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.0.19)
Gecko/2010031422 Firefox/3.0.19 (.NET CLR 3.5.30729)
When using the System.DateTime struct, the ToLongDateString() does not always
return the locale's full long date, including the full day of the week name.
This applies to locales other than en_US.
Reproducible: Always
Steps to Reproduce:
1. Compile the attached cs file
2. Run Program.exe
3. Observe incorrect results
Actual Results:
using the de_CH locale, mono runtime returns:
Long Date = 21. April 2011
Expected Results:
On .NET, the same program (de_CH locale) returns
Long Date = Donnerstag, 21. April 2011
Notice the long date format - mono does not show the day of the week (name)
while .Net does.
Same issue with DateTime.Now.ToString("D")
--
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