mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Don't use the deprecated method
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
6a7b088adb
commit
0c4aa19c31
1 changed files with 2 additions and 1 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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue