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 standard/daylight date bug #872

Closed jirigalis closed 1 year ago

jirigalis 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. The 2nd of April is the day when AEDT time is changed to AEST, which leads to incorrect number of hours added to the currentDay variable (24 instead of 25). The bug was identified in the datepicker.base.component.ts file on lie 117.

Issue Number: #866

What is the new behavior?

One hour is added (or subtracted) to the currentDay variable when necessary (AEDT to AEST, AEST to AEDT).

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

fisherspy commented 1 year ago

874 fixes your issue.