Skip to content

Commit f59c24a

Browse files
authored
Set fixed 10 min interval to update news items (uplift to 1.71.x) (#26358)
Uplift of #26336 (squashed) to release
1 parent d74c94d commit f59c24a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/common/useRelativeTime.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const getRelativeTime = (time: Date | number) => {
3131
const amount = Math.floor(diff / duration)
3232
return {
3333
formatted: rtf.format(amount, unit ),
34-
updatesIn: duration - (Math.abs(diff - amount)),
34+
updatesIn: 10 * minute,
3535
}
3636
}
3737

0 commit comments

Comments
 (0)