Skip to content

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

Closed
@eddiederk

Description

@eddiederk

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!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions