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

nz-range-picker start time is set to "now" after open end time selector #5651

Closed
wojtek1150 opened this issue Aug 5, 2020 · 2 comments · Fixed by #5812
Closed

nz-range-picker start time is set to "now" after open end time selector #5651

wojtek1150 opened this issue Aug 5, 2020 · 2 comments · Fixed by #5812
Assignees
Milestone

Comments

@wojtek1150
Copy link

Reproduction link

https://stackblitz.com/edit/nz-range-picker-time-error?file=src/app/app.component.ts

Steps to reproduce

  • Select start date for any date (ex today), and select future time (eg. If now is 14, choose 18)
  • Click OK (end time select should appear)
  • Click on same date (if you chose start as today, do the same for end date)
  • Start time was changed to current times (14)

What is expected?

Time should not change

What is actually happening?

Time is changed to your system time

Environment Info
ng-zorro-antd 9.3.0
Browser Chrome 84
@wenqi73
Copy link
Member

wenqi73 commented Aug 6, 2020

Range picker will sort your input date automatically, we will optimize this in v10, also related to #5572.

@wojtek1150
Copy link
Author

wojtek1150 commented Aug 6, 2020

Range picker will sort your input date automatically, we will optimize this in v10, also related to #5572.

Sort is not a problem. Have a look at time, see:
https://im5.ezgif.com/tmp/ezgif-5-135495a7da58.gif

Was 16:55, after click on date has changed to 12:55

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

Successfully merging a pull request may close this issue.

3 participants