summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.js b/server.js
index 0766216..481fb52 100644
--- a/server.js
+++ b/server.js
@@ -184,7 +184,7 @@ function human_date(time) {
}
if (days === 1) return "Yesterday";
if (days < 14) return days + " days ago";
- if (days < 31) return Math.ceil(days / 7) + " weeks ago";
+ if (days < 31) return Math.floor(days / 7) + " weeks ago";
return date.toISOString().substring(0,10);
}