-
Notifications
You must be signed in to change notification settings - Fork 6.7k
feat(datepicker): ng-model-options: timezone #5062
Conversation
a1c26a6
to
ef4189c
Compare
@@ -100,6 +100,10 @@ The datepicker has 3 modes: | |||
allowInvalid support. [More on ngModelOptions](https://docs.angularjs.org/api/ng/directive/ngModelOptions). | |||
|
|||
|
|||
* `ng-model-options` | |||
_(Default: {})_ - | |||
Timezone support. [More on ngModelOptions](https://docs.angularjs.org/api/ng/directive/ngModelOptions). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be condensed with the ng-model-options
block directly above, changing the allowInvalid
and timezone
mention to sub-bullet points.
ef4189c
to
30079ec
Compare
The dateparser additions will need unit tests. |
@@ -571,6 +579,8 @@ function(scope, element, attrs, $compile, $parse, $document, $rootScope, $positi | |||
if (datepickerPopupConfig.html5Types[attrs.type]) { | |||
dateFormat = datepickerPopupConfig.html5Types[attrs.type]; | |||
isHtml5DateInput = true; | |||
ngModelOptions.timezoneHtml5 = ngModelOptions.timezone; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a particular reason for splitting this out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great question. Looking through the changes, the distinction seems superfluous. I forget why I made the distinction in the first place. Let me remove it.
I think this is close to done, just needs those tasks/questions to be answered and this should be good to merge. This is a lot cleaner than my own attempt at it. |
8348d8e
to
469477d
Compare
469477d
to
32071bb
Compare
for #4837
plunker http://plnkr.co/edit/eEAYYfDbEBz754iVUSYN?p=preview