From fd60e96e1d04ed8542f5eae314eb6b80a147f04f Mon Sep 17 00:00:00 2001 From: Saad Yousaf Date: Fri, 5 Aug 2022 22:04:09 +0500 Subject: [PATCH] fix: fix timeago detail for months to be in weeks. (#235) Co-authored-by: SaadYousaf --- src/discussions/common/time-locale.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/discussions/common/time-locale.js b/src/discussions/common/time-locale.js index cea761c8..19ae9935 100644 --- a/src/discussions/common/time-locale.js +++ b/src/discussions/common/time-locale.js @@ -11,8 +11,8 @@ export default function timeLocale(number, index, totalSec) { ['%sd', 'in %s days'], ['1w', 'in 1 week'], ['%sw', 'in %s weeks'], - ['1m', 'in 1 month'], - ['%sm', 'in %s months'], + ['4w', 'in 1 month'], + [`${number * 4}w`, 'in %s months'], ['1y', 'in 1 year'], ['%sy', 'in %s years'], ][index];