From e1d895cba5eb494af1a9b837815ca04df46b53ae Mon Sep 17 00:00:00 2001 From: Thinh Pham Date: Fri, 6 Jan 2017 16:48:11 +0700 Subject: [PATCH] Fix: Remove moment.locale It conflicts with the app's moment locale --- dist/angular-timer.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dist/angular-timer.js b/dist/angular-timer.js index fc93a51..89456ad 100644 --- a/dist/angular-timer.js +++ b/dist/angular-timer.js @@ -375,10 +375,7 @@ app.factory('I18nService', function() { if (supported_languages.indexOf(lang) === -1) { this.language = this.fallback; } - - //moment init - moment.locale(this.language); // @TODO maybe to remove, it should be handle by the user's application itself, and not inside the directive - + //human duration init, using it because momentjs does not allow accurate time ( // momentJS: a few moment ago, human duration : 4 seconds ago this.timeHumanizer = humanizeDuration.humanizer({