From 2f44298758e3b33393170657c5d10d8594295925 Mon Sep 17 00:00:00 2001 From: Jonathan Budzenski Date: Fri, 22 Jul 2016 12:11:34 -0500 Subject: [PATCH] [moment] Deprecation warning fix, use updateLocale --- src/ui/public/timepicker/kbn_global_timepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/public/timepicker/kbn_global_timepicker.js b/src/ui/public/timepicker/kbn_global_timepicker.js index 2e730897d5ec2..fe1e746db3678 100644 --- a/src/ui/public/timepicker/kbn_global_timepicker.js +++ b/src/ui/public/timepicker/kbn_global_timepicker.js @@ -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);