diff options
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/OC/util.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/OC/util.js b/core/src/OC/util.js index f8f7c05e6e8..67f00bf30d3 100644 --- a/core/src/OC/util.js +++ b/core/src/OC/util.js @@ -114,6 +114,7 @@ export default { * @returns {string} timestamp formatted as requested */ formatDate: function(timestamp, format) { + console.warn('OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment') format = format || 'LLL' return moment(timestamp).format(format) }, @@ -123,6 +124,7 @@ export default { * @returns {string} human readable difference from now */ relativeModifiedDate: function(timestamp) { + console.warn('OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment') const diff = moment().diff(moment(timestamp)) if (diff >= 0 && diff < 45000) { return t('core', 'seconds ago') |