The date is not a reactive variable, so it is not updated when the time difference changes.
You can make it reactive by forcing it to recount every minute (or user interval):
UI.registerHelper('timeAgo', function(datetime) {
Session.get('time');
return moment(datetime).fromNow();
});
setInterval(function() {
Session.set("time", new Date())
}, 60000);
This will cause the assistant to redraw the time value every minute.
source
share