aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/OC
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2023-06-24 15:10:29 +0200
committernextcloud-command <nextcloud-command@users.noreply.github.com>2023-06-24 15:00:15 +0000
commit95deec130aa958b6ebb13e216e01318a90ae7ba9 (patch)
treefced69fa0103cf075e6ff8ec464912882fec89ae /core/src/OC
parent908adb339bc67bc92328989bcc8a6993deefc4d3 (diff)
downloadnextcloud-server-95deec130aa958b6ebb13e216e01318a90ae7ba9.tar.gz
nextcloud-server-95deec130aa958b6ebb13e216e01318a90ae7ba9.zip
address review
Signed-off-by: Simon L <szaimen@e.mail.de> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'core/src/OC')
-rw-r--r--core/src/OC/capabilities.js2
-rw-r--r--core/src/OC/util.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/core/src/OC/capabilities.js b/core/src/OC/capabilities.js
index 8fc21abf369..72a71d7c743 100644
--- a/core/src/OC/capabilities.js
+++ b/core/src/OC/capabilities.js
@@ -32,6 +32,6 @@ import { getCapabilities as realGetCapabilities } from '@nextcloud/capabilities'
* @since 14.0.0
*/
export const getCapabilities = () => {
- OC.debug && console.debug('OC.getCapabilities is deprecated and will be removed in Nextcloud 21. See @nextcloud/capabilities')
+ OC.debug && console.warn('OC.getCapabilities is deprecated and will be removed in Nextcloud 21. See @nextcloud/capabilities')
return realGetCapabilities()
}
diff --git a/core/src/OC/util.js b/core/src/OC/util.js
index 42ac73ef07d..f0dd7e0ac14 100644
--- a/core/src/OC/util.js
+++ b/core/src/OC/util.js
@@ -124,7 +124,7 @@ export default {
*/
formatDate(timestamp, format) {
if (window.TESTING === undefined) {
- OC.debug && console.debug('OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment')
+ OC.debug && 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)
@@ -136,7 +136,7 @@ export default {
*/
relativeModifiedDate(timestamp) {
if (window.TESTING === undefined) {
- OC.debug && console.debug('OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment')
+ OC.debug && 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) {