question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DateTimeFormat: The range of hours in Chinese is not right

See original GitHub issue

Describe the bug When the language is Chinese, and the formatPattern of DateTimeFormat is set to “YYYY’年’MMMdd’日’ a h’:'mm”, it should be a 12-hour clock system. However, the range of hours is 24-hour. image

You can also reproduce this issue in the storybook website. image

Expected behavior when the time is 12-hour system, the hour can only be selected from 0 to 12.

UI5 Web Components for React Information @ui5/webcomponents version: 1.0.0-rc.7 @ui5/webcomponents-react version: 0.9.11

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
unazkocommented, Feb 22, 2021

Hello @SunnyWind,

The issue is fixed with v1.0.0-rc.12 and ready for consumption. You could test with the latest release and get back to us if further assistance is needed.

Best Regards, Boyan

0reactions
ilhan007commented, Mar 26, 2021

RC.12 is released @SunnyWind did you try it. If you face the issue, please comment below and we will reopen the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Intl.DateTimeFormat() constructor - JavaScript - MDN Web Docs
The Intl.DateTimeFormat() constructor creates Intl.DateTimeFormat objects ... but not with other options (e.g. weekday , hour , month , etc.) ...
Read more >
Date formatting based on user locale on android
You can use the DateFormat class that formats a date according to the user locale. Example: String dateOfBirth = "26/02/1974"; ...
Read more >
Wrong date time format in Asia/Chinese/Japanese locale #117
Currently, exa is very naïve and assumes that every culture uses the date format of day-month. ls is smart and is able to...
Read more >
A summary of the international standard date and time notation
ISO 8601 is only specifying numeric notations and does not cover dates and times where words are used in the representation. It is...
Read more >
datetime — Basic date and time types — Python 3.11.1 ...
An aware object represents a specific moment in time that is not open to ... and there is no standard suitable for every...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found