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.
mdDatepicker: Not updated correctly with ng-model-options timezone #9989
Closed

Description
Actual Behavior:
What is the issue? *
Using md-datetime with ng-model-options="{timezone: '-0500'}", shown value is not updated in accordance with the time zone like Input component.
Not updated correctly
<md-datepicker ng-model="myDate" ng-model-options="{timezone:myDateTimeZone}"></md-datepicker>
Updated correctly
<input type="date" ng-model="myDate" ng-model-options="{timezone:myDateTimeZone}" />
Setting the date using the md-datepicker, the value is set properly.
CodePen (or steps to reproduce the issue): *
CodePen Demo which shows your issue:
http://codepen.io/anon/pen/woKwbb
Angular Versions: *
Angular Version:
1.5.8Angular Material Version:
1.1.0