Permalink
Browse files

better date display for old items

  • Loading branch information...
brianshaler committed May 27, 2012
1 parent 881eb8f commit 366e02f4a51aa8cee172eda4c87dfd21df261bb8
Showing with 3 additions and 3 deletions.
  1. +3 −3 public/js/saturn.js
View
@@ -341,9 +341,9 @@ ActivityItem.prototype.set_time = function () {
} else
if (diff < 60*60*24*30) {
str = Math.round(diff/60/60/24)+"d";
- } else
- {
- str = (Math.round(diff/60/60/24*10)/10)+"yrs";
+ } else {
+ var d = new Date(self.int_created_at*1000);
+ str = (d.getMonth()+1) + "/" + d.getDate() + (d.getFullYear() != (new Date()).getFullYear() ? "/" + d.getFullYear() : "");
}
time_div.html(str);
}

0 comments on commit 366e02f

Please sign in to comment.