Skip to content

Commit

Permalink
Merge pull request matryer#266 from sylvainbaronnet/master
Browse files Browse the repository at this point in the history
fix pb when gitlab api time returned is slightly later than local time
  • Loading branch information
keithamus committed Feb 22, 2016
2 parents 5f44948 + bbc40ef commit f9f1f68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dev/Gitlab/gitlab_projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ var timeago = function() {
},
ts = new Date().getTime() - new Date(nd).getTime(),
ii;
if(ts < 0) {
return 'Just now';
}
for (i in o) {
if (r(ts) < o[i]) return pl(ii || 'm', r(ts / (o[ii] || 1)))
ii = i;
Expand Down

0 comments on commit f9f1f68

Please sign in to comment.