chore!(core): remove handling of .live-relative-timestamp use @nextcloud/vue/components/NcDateTime instead

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2026-01-19 17:28:55 +01:00
parent 503fad2b16
commit c89939fbd6
No known key found for this signature in database
GPG key ID: 7E849AE05218500F

View file

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