Skip to content

Commit

Permalink
[moment] Deprecation warning fix, use updateLocale
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz committed Jul 22, 2016
1 parent 05fbc74 commit 2f44298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/public/timepicker/kbn_global_timepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ UiModules
config.bindToScope($scope, 'dateFormat:dow', 'dateFormat_dow');
$scope.$watch('dateFormat_dow', function (day) {
const dow = moment.weekdays().indexOf(day);
moment.locale(moment.locale(), { week: { dow } });
moment.updateLocale(moment.locale(), { week: { dow } });
});

listenForUpdates($rootScope);
Expand Down

0 comments on commit 2f44298

Please sign in to comment.