[MGNLUI-4272] DateField: Also allow to set a 'defaultTime' beside 'defaultValue'. Created: 18/Aug/17  Updated: 05/May/20

Status: Open
Project: Magnolia UI
Component/s: forms
Affects Version/s: 5.5.5
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Christian Ringele Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to MGNLUI-5325 Support defaultValue in fields of new... Closed
relation
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)

 Description   

OTB one can either have as a defaultValue setting a specific Date or the current Date&Time (defaultValue=now).

It would be nice if also a defaultTime could be set independent from the date value (defaultValue).

Reasoning / the use case of the customer:
Authors need to set always the same start and end time of the current day.
So when they open the dialog, the defaultValue (date) should be "now", but the Time prefilled should be configurable.
For example: %NOW% at 8:00 or For example: %NOW% at 17:00

Possible implementation:

  • Extending the DateFieldDefinition with a defaultTime.
  • Adding into DateFieldFactory.getConfiguredDefaultValue() also the defaultTime value into account.
    Current blockers of this: MGNLUI-4270 & MGNLUI-4271

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