Skip to content

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

Closed

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!

Activity

  1. donroyco commented on Aug 18, 2017

    @donroyco
    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

  2. julianobrasil commented on Aug 18, 2017

    @julianobrasil
    Contributor

    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.

  3. mmalerba commented on Aug 28, 2017

    @mmalerba
    Contributor

    closing since this has been fixed by #5747

  4. angular-automatic-lock-bot commented on Sep 6, 2019

    @angular-automatic-lock-bot

    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.

  5. locked and limited conversation to collaborators on Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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