UI5 / UI5/openui5

sap.m.DatePicker show wrong date when switch timezone

Open
#3,922 9 comments 0 reactions 1 assignee View on GitHub

@Todor-ads is already working on this.

Since May 20, 2024.

bug consulting in progress
Dominant language
JavaScript
Stars
3.3k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

OpenUI5 version:
1.120.1
Browser/version (+device/version):
Chrome Version 120.0.6099.71 (Official Build) (x86_64)

Any other tested browsers/devices(OK/FAIL):
MacOS

URL (minimal example if possible):
https://ui5.sap.com/1.120.1/#/entity/sap.m.DatePicker/sample/sap.m.sample.DatePicker

User/password (if required and possible - do not post any confidential information here):

Steps to reproduce the problem:

  1. Change chrome timezone to 'Pacific/Apia'
  2. Refresh ui5 sample page
  3. Click simple datepicker, select 2023-12-14, the input show 'Dec 13, 2023'

What is the expected result?
It should be 'Dec 14, 2023'
What happens instead?

Any other information? (attach screenshot if possible)
Edge has same problem

datepicker-issue age.png…]()

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.