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

Datepicker calendar displays wrong month #4561

Closed
mzernetsch opened this issue May 15, 2017 · 4 comments
Closed

Datepicker calendar displays wrong month #4561

mzernetsch opened this issue May 15, 2017 · 4 comments

Comments

@mzernetsch
Copy link

mzernetsch commented May 15, 2017

Bug, feature request, or proposal:

Bug

What is the expected behavior?

When the datepicker calendar is opened after a date has been selected, it should show the currently selected month.

What is the current behavior?

When the datepicker calendar is opened after a date has been selected, it shows the wrong month.
It seems to interpret the day as month, like when the 2. of january has been selected, it initially shows february when opened.

What are the steps to reproduce?

  1. Open the demo page (https://material.angular.io/components/component/datepicker) in Chrome.
  2. Select the 2. of january in the datepicker calendar.
  3. Open the datepicker calendar again.

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

Angular Material 2.0.0-beta.5
Chrome (58.0.3029.96 (64-bit))

Is there anything else we should know?

Firefox works flawlessy. It also works in Chrome, when i input the 2. of january directly into the input field.
I would guess it has to do with german date formats (DD.MM.YYYY).

Edit: Firefox does not work flawlessy, it just always resets to the current month.

datepicker_bug

@ocarreterom
Copy link
Contributor

ocarreterom commented May 15, 2017

I think datepicker requires the YYYY-MM-DD input format.

@fxck
Copy link
Contributor

fxck commented May 15, 2017

dupe of #4358 (comment)

@jelbourn
Copy link
Member

See #4358

@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 5, 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