ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

DateTimePicker : On selection shows a different date and time in chrome based browsers like Chrome and Edge

Open userujala opened this issue 6 years ago • 2 comments

I am using the DateTimePicker in states from the UI5 web component. When i am trying to select the date and time in my Chrome browser , on selection it shows a different date and time. The same issue i have identified in Edge Browser. This works fine in My Firefox Browser.

Context

  • UI5 Web Components version : "@ui5/webcomponents-base": "0.22.0", "@ui5/webcomponents-fiori": "1.0.0-rc.8", "@ui5/webcomponents-react": "0.10.8", "@ui5/webcomponents-react-charts": "0.10.8",
  • OS/Platform: SAP Cloud Platfrom (CF)
  • Browser (if relevant): Checked on Chrome ( 87.0.4280.67 (Official Build) (x86_64)) , Edge (86.0.622.56 (Official build) (64-bit)) Firefox (v 83)

I have attached the screenshot for the same in sequential order.

  • Select the date time picker component.
  • selected for 24th Nov 02:02:02
  • but the selection applies for Nov20, 2002, 2:02:00 AM

But the same is working in Firefox.

Screenshot 2020-11-23 at 9 28 54 PM Screenshot 2020-11-23 at 9 29 07 PM Screenshot 2020-11-23 at 9 29 23 PM Screenshot 2020-11-23 at 9 29 35 PM

userujala avatar Nov 23 '20 16:11 userujala

Hello @userujala

Can you provide an isolated sample via CodeSandBox, because I was unable to reproduce it locally on my side.

Please use the exact same format as you are using in your application. Also, it would be nice if you share your local time zone.

fifoosid avatar Nov 24 '20 09:11 fifoosid

Closing due to inactivity.

ilhan007 avatar Jan 22 '21 19:01 ilhan007