mirror of
https://github.com/discourse/discourse.git
synced 2025-06-09 17:28:13 +08:00
goodbye NaNy
This commit is contained in:
@ -20,7 +20,7 @@ Discourse.GithubCommit = Discourse.Model.extend({
|
||||
}.property("sha"),
|
||||
|
||||
timeAgo: function() {
|
||||
return Discourse.Formatter.relativeAge(new Date(this.get('commit.committer.date'), {format: 'medium', leaveAgo: true}));
|
||||
return moment(this.get('commit.committer.date')).relativeAge({format: 'medium', leaveAgo: true})
|
||||
}.property("commit.committer.date")
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user