[MAGNOLIA-4502] dateFormat and timeFormat doesn't work for control date Created: 02/Aug/12  Updated: 05/Apr/13  Resolved: 05/Apr/13

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 4.5.3
Fix Version/s: 4.5.9

Type: Improvement Priority: Neutral
Reporter: Ola Montan Assignee: Milan Divilek
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
is cloned by MGNLADMLEG-5 CLONE - dateFormat and timeFormat doe... Closed
relation
is related to MAGNOLIA-3560 Hardcoded date format in DialogDate Closed
is related to MAGNOLIA-4497 Date Control: timeFormat and jsTimeFo... 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)
Date of First Response:

 Description   

The date control contains properties dateFormat, timeFormat, jsDateFormat and jsTimeFormat.

These values are ignored by the control. When checking the source code DialogDate.java, it was implemented in 4.4.7:

String format = this.getConfigValue("dateFormat", "yyyy-MM-dd");

but in 4.5 the function was removed:

String format = "yyyy-MM-dd"; //$NON-NLS-1$

Why is that? We need to customise the time (remove the seconds).



 Comments   
Comment by Milan Divilek [ 03/Aug/12 ]

Hello Ola,

thanks for reporting this issue. Configuration of date format was introduced in Magnolia 4.4.4 (ticket MAGNOLIA-3560), but seems the functionality wasn't ported to Magnolia 4.5.x. Added to changelog 4.5.5.

Comment by Milan Divilek [ 03/Aug/12 ]

MAGNOLIA-3560 need to be ported to 4.5.x and master branches.

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