summaryrefslogtreecommitdiff
path: root/www/js/TimelineModalCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2016-09-12 16:06:58 -0400
committerPliable Pixels <pliablepixels@gmail.com>2016-09-12 16:06:58 -0400
commit75cb70566c6905885caf94f801166cc370c24e60 (patch)
tree1276cabc9e8af89b878f9706c439f6975cfdfd7d /www/js/TimelineModalCtrl.js
parent2b007d28e89202b5ca55ce663d742df43afdd972 (diff)
#325 - removed the need for 'ago'
Former-commit-id: ba3bad30bc854bd4302bb97783985a2f80a6ef56
Diffstat (limited to 'www/js/TimelineModalCtrl.js')
-rw-r--r--www/js/TimelineModalCtrl.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/www/js/TimelineModalCtrl.js b/www/js/TimelineModalCtrl.js
index 10aa2ce3..f92aff26 100644
--- a/www/js/TimelineModalCtrl.js
+++ b/www/js/TimelineModalCtrl.js
@@ -444,11 +444,7 @@ angular.module('zmApp.controllers').controller('TimelineModalCtrl', ['$scope', '
function humanizeTime(str)
{
- var et = moment(str);
- var m = moment.duration(moment().diff(et)).humanize();
-
- var r = m+' '+$translate.instant('kAgo');
- return (r);
+ return moment(str).fromNow();
}