SAP / ui5-webcomponents

UI5 Web Components - the enterprise-flavored sugar on top of native APIs! Build SAP Fiori user interfaces with the technology of your choice.
https://sap.github.io/ui5-webcomponents/
Apache License 2.0
1.47k stars 254 forks source link

Incorrect Default Time in DateTimePicker #8966

Closed saran85 closed 1 month ago

saran85 commented 1 month ago

Bug Description

The DateTimePicker component in our UI5 web application is exhibiting unexpected behavior related to the default time when selecting a date. It consistently provides an incorrect default time instead of occasionally using the local time, which is causing usability and data entry issues for our users. please refer previous ticket https://github.com/SAP/ui5-webcomponents/issues/7992 . The issue persists even after updating to the new version.

Affected Component

DateTimePicker

Expected Behaviour

When selecting a date, the DateTimePicker should automatically use the local time or, at the very least, display a time value that accurately corresponds to the selected date.

Isolated Example

https://codesandbox.io/p/sandbox/datetimepicker-rn4z43

Steps to Reproduce

Navigate to the DateTimePicker in the application. Select a date by clicking on the calendar icon. Observe that the DateTimePicker sets an incorrect default time. image

Log Output, Stack Trace or Screenshots

No response

Priority

High

UI5 Web Components Version

1.17.0

Browser

Chrome, Edge

Operating System

No response

Additional Context

No response

Organization

No response

Declaration

GerganaKremenska commented 1 month ago

Hello @saran85,

The example you provided is with version 1.17, I have updated the example to 1.22(which includes the fix) and it seems, okay to me.

Screenshot 2024-05-15 at 10 15 47

Can you please retest and get back to us?

Best Regards, Gergana

saran85 commented 1 month ago

I appreciate it, it's working as expected.