From c89939fbd6064efd37f871bf6abe0f45a4add4c2 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 19 Jan 2026 17:28:55 +0100 Subject: [PATCH] chore!(core): remove handling of `.live-relative-timestamp` use `@nextcloud/vue/components/NcDateTime` instead Signed-off-by: Ferdinand Thiessen --- core/src/init.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/core/src/init.js b/core/src/init.js index 5847a1676aa..ff4082c17d0 100644 --- a/core/src/init.js +++ b/core/src/init.js @@ -19,19 +19,6 @@ import { interceptRequests } from './utils/xhr-request.js' // keep in sync with core/css/variables.scss const breakpointMobileWidth = 1024 -/** - * - */ -function initLiveTimestamps() { - // Update live timestamps every 30 seconds - setInterval(() => { - $('.live-relative-timestamp').each(function() { - const timestamp = parseInt($(this).attr('data-timestamp'), 10) - $(this).text(moment(timestamp).fromNow()) - }) - }, 30 * 1000) -} - /** * Moment doesn't have aliases for every locale and doesn't parse some locale IDs correctly so we need to alias them */ @@ -242,6 +229,4 @@ export function initCore() { // initial call toggleSnapperOnSize() } - - initLiveTimestamps() }