diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-06-20 12:22:19 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-06-20 12:22:19 +0200 |
commit | 8facb96ed7c46834d48988a40c46498b9785648f (patch) | |
tree | 4315727db98bf50a2db4308683fceb776fe757d4 | |
parent | 2606f7b7dde9b3f252cc7d97fc7b285640e2c659 (diff) | |
download | nextcloud-server-chore/remove-live-timestamps.tar.gz nextcloud-server-chore/remove-live-timestamps.zip |
chore: remove legacy live timestampschore/remove-live-timestamps
This feature is not used anymore in core and is not documented.
The remaining places where it is used in apps are fixed, or at least
pull requests are created.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
-rw-r--r-- | core/src/init.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/core/src/init.js b/core/src/init.js index 1bcd8218702..e2688599e42 100644 --- a/core/src/init.js +++ b/core/src/init.js @@ -19,16 +19,6 @@ import { initFallbackClipboardAPI } from './utils/ClipboardFallback.ts' // keep in sync with core/css/variables.scss const breakpointMobileWidth = 1024 -const 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 */ @@ -276,6 +266,4 @@ export const initCore = () => { toggleSnapperOnSize() } - - initLiveTimestamps() } |