diff --git a/client/views/playlists/playlist.html b/client/views/playlists/playlist.html index 1cc8bd3..1ab5428 100644 --- a/client/views/playlists/playlist.html +++ b/client/views/playlists/playlist.html @@ -228,7 +228,7 @@

{{snippet.title}}

{{> userLink}} {{/each}}

-

Added by {{#with this.author}}{{> userLink}}{{/with}} {{fromNow this.added}}

+

Added by {{#with this.author}}{{> userLink}}{{/with}} {{this.addedFromNow}}

diff --git a/client/views/playlists/playlist.js b/client/views/playlists/playlist.js index ad03d24..70c4483 100644 --- a/client/views/playlists/playlist.js +++ b/client/views/playlists/playlist.js @@ -441,7 +441,7 @@ Template.songs.songs = function() { //extra info song.author = Meteor.users.findOne({_id: entry.author}); - song.added = entry.added; + song.addedFromNow = entry.added ? moment(entry.added).fromNow() : ""; return song; });