This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
$overrideModelOptions does not apply timezone #16181
Closed
Description
I'm thinking is bug
Current behavior:
Changing timezone programmatically (use $overrideModelOptions) dont work
Expected / new behavior:
If we set new timezone, it apply to model
Minimal reproduction of the problem with instructions:
function ChangeModelOptionsDirective () {
return {
restrict: 'A',
require: 'ngModel',
link: function ($scope, element, attrs, ngModel) {
ngModel.$overrideModelOptions({
timezone: '+0400', // dont work
debounce: {
'default': 5000 // it work
}
})
}
};
}
Plunker: http://plnkr.co/edit/7zHR1EKigTMaFjDU1yDc?p=preview
Angular version - 1.6.5