diff options
-rw-r--r-- | core/src/init.js | 3 |
1 files changed, 2 insertions, 1 deletions
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) } |