Skip to content

[Bug] Datepicker shows incorrect month #4955

@rafaelss95

Description

@rafaelss95

Bug, feature request, or proposal:

Bug.

What is the expected behavior?

The datepicker should open at the correct month.

What is the current behavior?

Datepicker doesn't display the correct month if you use a custom locale like this: this.dateAdapter.setLocale('pt-BR'); and select a day lower than 13.

What are the steps to reproduce?

Select a day lower than 13 and open the datepicker again.

Providing a Plunker (or similar) is the best way to get the team to see your issue.
https://plnkr.co/edit/gkYoHKauuzfvtRDMmwtl?p=info

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

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

Angular: 4.1.3
Material: 2.0.0-beta.6
Browsers: Chrome (I only tested on this).

Is there anything else we should know?

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