From 0c4aa19c31ee9a81a3205e34f898375996d54098 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 17 Nov 2021 15:27:19 +0100 Subject: Don't use the deprecated method Signed-off-by: Joas Schilling --- core/src/init.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/src/init.js b/core/src/init.js index 07cc5c87542..9f5bd6027ef 100644 --- a/core/src/init.js +++ b/core/src/init.js @@ -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) } -- cgit v1.2.3