diff --git a/lib/common.js b/lib/common.js index f89cc80..0dabe85 100755 --- a/lib/common.js +++ b/lib/common.js @@ -116,13 +116,13 @@ function longAgo(when, now) { var seconds = Math.round((now - when) / 1000); var times = [ seconds / 60 / 60 / 24 / 365, // years - seconds / 60 / 60 / 24 / 30, // months + seconds / 60 / 60 / 24 / 7, // weeks seconds / 60 / 60 / 24, // days seconds / 60 / 60, // hours seconds / 60, // minutes seconds // seconds ]; - var names = ['y', 'mon', 'd', 'h', 'min', 's']; + var names = ['y', 'w', 'd', 'h', 'm', 's']; for (var i = 0; i < names.length; i++) { var time = Math.floor(times[i]);