Date Picker / Cell title does not reflect `nzFormat`
Opened this issue · 0 comments
RubenVermeulen commented
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
.
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.