Skip to content

[ui5-datetime-picker]: Time section not adapting to provided date-time format #12832

@divier320

Description

@divier320

Bug Description

When using ui5-datetime-picker component with display-format and value-format properties, the time section of the popup doesn't adapt to the provided time format, as it does when using format-pattern.

If for example, "yyyy-MM-dd HH:mm" pattern is provided:

  • to format-pattern, the time section will allow selecting only hour and minutes, ignoring the seconds.
  • to value-format and display-format properties, the time section will also include seconds.

Using formatPattern

Image

Using valueFormat

Image

Affected Component

ui5-datetime-picker

Expected Behaviour

value-format property has the same effect that "format-pattern" property over time selection

Isolated Example

No response

Steps to Reproduce

...

Log Output, Stack Trace or Screenshots

No response

Priority

None

UI5 Web Components Version

2.17.1

Browser

Edge

Operating System

No response

Additional Context

No response

Organization

No response

Declaration

  • I’m not disclosing any internal or sensitive information.

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug in the code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions