[MAGNOLIA-3560] Hardcoded date format in DialogDate Created: 23/Feb/11  Updated: 03/Aug/12  Resolved: 18/May/11

Status: Closed
Project: Magnolia
Component/s: gui
Affects Version/s: None
Fix Version/s: 4.4.4

Type: Bug Priority: Neutral
Reporter: Ondrej Chytil Assignee: Jan Haderka
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
relation
is related to MAGNOLIA-4502 dateFormat and timeFormat doesn't wor... 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   

Format of date used by DialogDate class is set to "yyyy-MM-dd".
This would ideally reflect date format default to the language used by user, or at least be configurable per instance of the control.



 Comments   
Comment by Jan Haderka [ 18/May/11 ]

Date format is now configurable via dateFormat and jsDateFormat properties of the date control. The default values are yyyy-MM-dd and %Y-%m-%d respectively.
Time format is also configurable via timeFormat and jsTimeFormat properties. The default values are HH:mm:ss and %k:%M:%S respectively.
The properties should be always changed in pair to ensure correct translation of the values on load and when entering from js calendar.

Comment by Magnolia International [ 18/May/11 ]

So the bug report says it should reflect the locale's format, and the resolution says the format pattern is configured ?

Comment by Jan Haderka [ 18/May/11 ]

Yes, forgot to mention that. There is currently no way to automatically convert those values based on the user locale. It would be possible for java string, but not for JS, hence the possibility to manually configure the format rather then having just one hardcoded settings.

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