Don't use the deprecated method

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2021-11-17 15:27:19 +01:00
parent 6a7b088adb
commit 0c4aa19c31
No known key found for this signature in database
GPG key ID: 7076EA9751AACDDA

View file

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