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() }