Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

datepicker: md-calendar panel should respect ng-model-options #10598

@ericsvendsen

Description

@ericsvendsen

Actual Behavior:

  • What is the issue? *
    An md-datepicker with the timezone set to UTC still shows the localized date as selected when viewing the popup calendar.
  • What is the expected behavior?
    The popup calendar should highlight the correct date in the context of the model's timezone

CodePen (or steps to reproduce the issue): *

  • CodePen Demo which shows your issue:
    http://codepen.io/anon/pen/NjxgmR
  • Details:
    Click the down arrow or the calendar icon to see that the previous day is shown as selected in the calendar view rather than the specified day.

AngularJS Versions: *

  • AngularJS Version:1.6.4
  • AngularJS Material Version:1.1.3

Additional Information:

  • Browser Type: *Chrome
  • Browser Version: *57.0.2987.133
  • OS: *MacOS
  • Stack Traces:NA

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions