-
Notifications
You must be signed in to change notification settings - Fork 13.5k
feat(datetime): add hourCycle property #23686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this! This is a great start. I would like to see this PR move more in line with what the JavaScript internationalization APIs use so that the API is more future proof. I left changes below which are required to merge this PR.
Please let me know if you have any questions about anything I wrote.
Requested Changes pushed, i think if you want to have some specific docs and explanation here it would be easier if you directly push into this pr or give me the text as i'm not the best in writing understandable docs in english 😃 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice work on this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job!
Merged. Thank you!! |
resolves #23661
Pull request checklist
Please check if your PR fulfills the following requirements:
npm run build
) was run locally and any changes were pushednpm run lint
) has passed locally and any fixes were made for failuresPull request type
Please check the type of change your PR introduces:
What is the current behavior?
Currently the date-time uses the locale to check if it should use a 12 or 24 hour format
Issue Number: #23661
What is the new behavior?
timeFormat
prop added which could be '12h' or '24h' (or undefined)Does this introduce a breaking change?
Other information