Skip to content

[DynamicDateRange]: DATERANGE shifts custom selected dates by one day #14005

Description

@JGuardiola95

Describe the bug

DynamicDateRange returns an incorrect date range for the built-in DATERANGE option.

The calendar visually selects the correct dates, but the component's resolved dates and selected-range footer are one day earlier than the dates chosen in the calendar.

This occurs specifically with custom ranges.

Environment

  • @ui5/webcomponents: 2.17.0
  • @ui5/webcomponents-react: 2.17.0
  • Browser: Google Chrome
  • Timezone: America/Monterrey; Central Standard Time (GMT-6)

Isolated Example

No response

Reproduction steps

  1. Open the control and choose FROM/TO
  2. In the calendar, select any range of dates, for example August 10 - August 20
  3. See selected value August 9 - August 19 on footer
    ...

Expected Behaviour

Select correct date range

Screenshots or Videos

Image

UI5 Web Components for React Version

2.17.0

UI5 Web Components Version

2.17.0

Browser

Chrome

Operating System

No response

Additional Context

This is also happening on UI5 react docs https://ui5.github.io/webcomponents-react/v2/?path=/docs/inputs-dynamicdaterange--docs

Relevant log output

Organization

No response

Declaration

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions