Skip to content

Datepicker Selection off by 1 day IF the year is 1964 and below. #6538

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

Closed
eddiederk opened this issue Aug 18, 2017 · 4 comments
Closed

Datepicker Selection off by 1 day IF the year is 1964 and below. #6538

eddiederk opened this issue Aug 18, 2017 · 4 comments
Assignees

Comments

@eddiederk
Copy link

Bug, feature request, or proposal:

Bug

What is the expected behavior?

When you click on a date, the input value should be the day you click

What is the current behavior?

If you select a date that is BOTH in the year 1964 or below AND the day is AFTER the 10th then the date displayed in the input box shows the day before the selected date. (But the calendar shows the correct date)

What are the steps to reproduce?

Enter the date 9/12/1963 into the input box
Open the calendar and select 9/15/1963
Notice the input box says 9/14/1963

Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: https://goo.gl/DlHd6U

https://material.angular.io/components/datepicker/overview

You can use the material demo site to reproduce.
No coding required! Yeah.

What is the use-case or motivation for changing an existing behavior?

Old people get frustrated when they cant select their birth date 🥇

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular: 4.1.2
Material: 2.0.0-beta.8
Doesn't work on ->Chrome OS: Version 60.0.3112.101 <-
It works just fine on -> Microsoft Edge 40.15063.0.0 <-

Is there anything else we should know?

You guys are crazy amazing!
Keep it up!

@donroyco
Copy link
Contributor

If I reproduce your issue, the date states 14/09/1963 (09 February 1964 if counting), while at first it was 09/12/1963 (12 September 1963).

The focus on the particular date in 1963 is also gone, see attachment. It jumps back to 2017.
date-picker-issue

@julianobrasil
Copy link
Contributor

julianobrasil commented Aug 18, 2017

It depends on the locale and affects daylight summer time in past dates when they don't follow today's dst rules. #5747 corrects it and will be available in the next release.

@mmalerba
Copy link
Contributor

closing since this has been fixed by #5747

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants