diff --git a/apps/comments/js/commentstabview.js b/apps/comments/js/commentstabview.js
index eae18c1d48..82244d61e9 100644
Binary files a/apps/comments/js/commentstabview.js and b/apps/comments/js/commentstabview.js differ
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index cfaeca1a06..26c6b34d09 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1202,8 +1202,9 @@
}
td = $('
' +
@@ -152,6 +152,7 @@
altSize: n('files', '%n byte', '%n bytes', this.model.get('size')),
dateLabel: t('files', 'Modified'),
altDate: OC.Util.formatDate(this.model.get('mtime')),
+ timestamp: this.model.get('mtime'),
date: OC.Util.relativeModifiedDate(this.model.get('mtime')),
starAltText: isFavorite ? t('files', 'Favorited') : t('files', 'Favorite'),
starIcon: OC.imagePath('core', isFavorite ? 'actions/starred' : 'actions/star'),
diff --git a/apps/files_versions/js/versionstabview.js b/apps/files_versions/js/versionstabview.js
index 2424778b4e..2e334edacb 100644
--- a/apps/files_versions/js/versionstabview.js
+++ b/apps/files_versions/js/versionstabview.js
@@ -15,7 +15,7 @@
'
' +
'' +
'' +
- '{{relativeTimestamp}}' +
+ '{{relativeTimestamp}}' +
'' +
'{{#canRevert}}' +
'' +
@@ -183,6 +183,7 @@
_formatItem: function(version) {
var timestamp = version.get('timestamp') * 1000;
return _.extend({
+ millisecondsTimestamp: timestamp,
formattedTimestamp: OC.Util.formatDate(timestamp),
relativeTimestamp: OC.Util.relativeModifiedDate(timestamp),
downloadUrl: version.getDownloadUrl(),
diff --git a/core/js/js.js b/core/js/js.js
index 799d2ba0b2..a123846a72 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -1660,6 +1660,13 @@ function initCore() {
$('body').delegate('#app-content', 'apprendered appresized', adjustControlsWidth);
}
+
+ // Update live timestamps every 30 seconds
+ setInterval(function() {
+ $('.live-relative-timestamp').each(function() {
+ $(this).text(OC.Util.relativeModifiedDate(parseInt($(this).attr('data-timestamp'), 10)));
+ });
+ }, 30 * 1000);
}
$(document).ready(initCore);