mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
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:
parent
503fad2b16
commit
c89939fbd6
1 changed files with 0 additions and 15 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue