From 70595b5c27869f37dc7f0adc39caa41f4f021922 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Sun, 3 Nov 2024 23:37:25 +0400 Subject: [PATCH] Set fixed 10 min interval to update news items (#26336) --- components/common/useRelativeTime.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/common/useRelativeTime.ts b/components/common/useRelativeTime.ts index 431093b609b2..890352053cc7 100644 --- a/components/common/useRelativeTime.ts +++ b/components/common/useRelativeTime.ts @@ -31,7 +31,7 @@ export const getRelativeTime = (time: Date | number) => { const amount = Math.floor(diff / duration) return { formatted: rtf.format(amount, unit ), - updatesIn: duration - (Math.abs(diff - amount)), + updatesIn: 10 * minute, } }