[MAGNOLIA-2227] DateUtil ignores locale for custom date format string Created: 06/Jul/08  Updated: 23/Jan/13  Resolved: 08/Jul/08

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 3.5, 3.5.1, 3.5.2, 3.5.3, 3.5.4, 3.5.5, 3.5.6, 3.5.7, 3.5.8, 3.6-m1, 3.6-m2, 3.6-m3
Fix Version/s: 3.6, 3.5.9

Type: Bug Priority: Major
Reporter: Philippe Marschall Assignee: Philipp Bärfuss
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File DateUtil.java     Text File DateUtil.java.patch     Text File DateUtilTest.java    
Issue Links:
dependency
is depended upon by MAGNOLIA-2012 out tag: property dateLanguage has no... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

If the <cms:out> tag is used for a date and a custom date format and date language is used then date language is ignored. This can be observed in the Mangolia samples module on a page of the type "Developer's showroom" and a paragraph of the type " Developer's showroom: Date control". In the section "dateLanguage (samples):" all dates are formatted with the language of the system instead of English, German and Finnish.

  • bugfix is attached
  • test case attached


 Comments   
Comment by Magnolia International [ 08/Jul/08 ]

Thanks for the patch - I tracked the same bug while checking MAGNOLIA-2012
Cheers !

Patch applied on 3.5 branch and trunk (3.6)

Generated at Mon Feb 12 03:34:39 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.