NG-ZORRO / ng-zorro-antd-mobile

A configurable Mobile UI components based on Ant Design Mobile and Angular. 🐜
http://ng.mobile.ant.design
Other
798 stars 239 forks source link

fix(module: calendar): fix calendar date bug #874

Closed aijunhao closed 1 year ago

aijunhao commented 1 year ago

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

2nd of April is displayed twice when AEDT timezone is used. Some special dates are not 24 hours a day,so currentDay calculation error in the datepicker.base.component.ts file on lie 117.

Issue Number: #866

What is the new behavior?

Use new Date() to get the next day.

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information