-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprectae OC.Util.formatDate and OC.Util.relativeModifiedDate #20988
Conversation
Please add this for all of these deprecations and removals 🙏 And we should maybe also add this to #20953 |
core/src/OC/util.js
Outdated
@@ -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') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a hint to use https://github.com/nextcloud/nextcloud-moment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise 👍
/compile amend / |
bf4ce86
to
04d8873
Compare
dfb9347
to
bfc018b
Compare
/compile amend / |
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
bfc018b
to
d5a13f8
Compare
Documented with the other changes from #20953 |
As per nextcloud/server#20988 OC.Util.relativeModifiedDate is deprecated.
As per nextcloud/server#20988 OC.Util.relativeModifiedDate is deprecated. Signed-off-by: Corentin Noël <corentin@elementary.io>
As per nextcloud/server#20988 Signed-off-by: Corentin Noël <corentin@elementary.io>
As per nextcloud/server#20988 Signed-off-by: Corentin Noël <corentin@elementary.io>
As per nextcloud/server#20988 Signed-off-by: Corentin Noël <corentin@elementary.io>
As per nextcloud/server#20988 Signed-off-by: Corentin Noël <corentin@elementary.io> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Signed-off-by: Roeland Jago Douma roeland@famdouma.nl