-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Deprectae OC.Util.formatDate and OC.Util.relativeModifiedDate #20988
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
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
| * @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
juliusknorr
left a comment
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 <[email protected]> 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 <[email protected]>
As per nextcloud/server#20988 Signed-off-by: Corentin Noël <[email protected]>
As per nextcloud/server#20988 Signed-off-by: Corentin Noël <[email protected]>
As per nextcloud/server#20988 Signed-off-by: Corentin Noël <[email protected]>
As per nextcloud/server#20988 Signed-off-by: Corentin Noël <[email protected]> Signed-off-by: nextcloud-command <[email protected]>
Signed-off-by: Roeland Jago Douma [email protected]