From dc0c21a841d5660f5ff63d395602ca244ce1bf1a Mon Sep 17 00:00:00 2001 From: tanshu Date: Tue, 15 May 2018 01:00:35 +0530 Subject: [PATCH] Removed mdDateLocaleProvider accidentally left on removal of ngMaterial --- brewman/static/app/overlord.config.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/brewman/static/app/overlord.config.ts b/brewman/static/app/overlord.config.ts index bd63ea73..0f162559 100644 --- a/brewman/static/app/overlord.config.ts +++ b/brewman/static/app/overlord.config.ts @@ -6,14 +6,6 @@ export function configureApp() { .config(['$httpProvider', function ($httpProvider) { $httpProvider.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; }]) - .config(['$mdDateLocaleProvider', function ($mdDateLocaleProvider) { - $mdDateLocaleProvider.formatDate = function (date) { - return !angular.isUndefined(date) ? moment(date).format('DD-MMM-YYYY') : ""; - }; - $mdDateLocaleProvider.parseDate = function (date) { - return moment(date, 'DD-MMM-YYYY').toDate(); - }; - }]) .config(['$httpProvider', function ($httpProvider) { $httpProvider.interceptors.push('responseInterceptor'); }])