diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2022-01-14 17:20:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-14 17:20:44 +0100 |
commit | 6556508733ae2b4b050d0f1f2cdfdc32a7af0ecc (patch) | |
tree | 631f9a58a7308b874bdbaeaa3fdcfed5b55b2baf /core | |
parent | 890af1917edc612552e97c118c5acdf681e649e7 (diff) | |
parent | be216921d325fc1ba939af6eaa87765875120a07 (diff) | |
download | nextcloud-server-6556508733ae2b4b050d0f1f2cdfdc32a7af0ecc.tar.gz nextcloud-server-6556508733ae2b4b050d0f1f2cdfdc32a7af0ecc.zip |
Merge pull request #29750 from nextcloud/bugfix/noid/dont-use-deprecated-method
Diffstat (limited to 'core')
-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) } |