Merge pull request #29750 from nextcloud/bugfix/noid/dont-use-deprecated-method

pull/30615/head
John Molakvoæ 2022-01-14 17:20:44 +07:00 committed by GitHub
commit 6556508733
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

@ -98,7 +98,8 @@ const initLiveTimestamps = () => {
// Update live timestamps every 30 seconds
setInterval(() => {
$('.live-relative-timestamp').each(function() {
$(this).text(OC.Util.relativeModifiedDate(parseInt($(this).attr('data-timestamp'), 10)))
const timestamp = parseInt($(this).attr('data-timestamp'), 10)
$(this).text(moment(timestamp).fromNow())
})
}, 30 * 1000)
}

4
dist/core-main.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long