diff --git a/src/cohost-wc.ts b/src/cohost-wc.ts index 6e4c414..cfe0025 100644 --- a/src/cohost-wc.ts +++ b/src/cohost-wc.ts @@ -8,8 +8,15 @@ function formatRelativeTime(date: Date) { const secondsPerMinute = 60; const minutesPerHour = 60; const hoursPerDay = 24; - const daysPerMonth = 30; // JS date handling moment + const daysPerMonth = 365.2425 / 12; // not how it works! + const daysPerYear = 365.2425; // still not how it works!! const intervals = { + year: + millisecondsPerSecond * + secondsPerMinute * + minutesPerHour * + hoursPerDay * + daysPerYear, month: millisecondsPerSecond * secondsPerMinute *