commit 98c4833e315b8c26f950da382c536ca1b3b47c09
Author: tri <tri@thac.loan>
Date:   Mon Sep 29 11:11:22 2025 +0700

    js: add "months ago"

diff --git a/src/assets/script.js b/src/assets/script.js
index c0e8ed2..6d3bc13 100644
--- a/src/assets/script.js
+++ b/src/assets/script.js
@@ -3,6 +3,7 @@ const secondsPerMinute = 60;
 const minutesPerHour = 60;
 const hoursPerDay = 24;
 const daysPerWeek = 7;
+const daysPerMonth = 31;
 const daysPerYear = 365; // getting imprecise here, but no big deal
 const intervals = {
   year:
@@ -11,6 +12,12 @@ const intervals = {
     minutesPerHour *
     hoursPerDay *
     daysPerYear,
+  month:
+    millisecondsPerSecond *
+    secondsPerMinute *
+    minutesPerHour *
+    hoursPerDay *
+    daysPerMonth,
   week:
     millisecondsPerSecond *
     secondsPerMinute *