Skip to content
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

Date Picker / Cell title does not reflect nzFormat #8743

Open
RubenVermeulen opened this issue Sep 11, 2024 · 0 comments
Open

Date Picker / Cell title does not reflect nzFormat #8743

RubenVermeulen opened this issue Sep 11, 2024 · 0 comments
Assignees

Comments

@RubenVermeulen
Copy link
Contributor

RubenVermeulen commented Sep 11, 2024

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-ivy-kzwn8f?file=src%2Fapp%2Fapp.component.ts

Steps to reproduce

  • Focus the date picker
  • Hover over a day
  • You'll notice a tooltip shows the date format

What is expected?

The date format of the tooltip should equal the date format of the input once a date is selected.

What is actually happening?

The date format of the tooltip is based on locale, and not on nzFormat.

image

Environment Info
ng-zorro-antd 18.1.1
Browser All

You can't make the assumption a locale represent the proper date format. When nzFormat is explicitly set it's expected the complete date picker adheres to this new format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants