Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
date_iso8601() is a leftover from early 8.x development, and is currently only used in tests. It also uses the global PHP date() function.
Proposed resolution
1. Add a @deprecated notice.
2. Update the function to use the use date formatter service.
3. Create a CR to announce the deprecation.
We can remove it's usage in core as a followup.
Remaining tasks
Do it.
User interface changes
None.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#4 | interdiff-02-04.txt | 447 bytes | mpdonadio |
#4 | 2715657-04.patch | 1.34 KB | mpdonadio |
#2 | 2715657-02.patch | 790 bytes | mpdonadio |
Comments
Comment #2
mpdonadioComment #4
mpdonadioComment #10
claudiu.cristeaI was not aware about this issue and I've created #2999989: Deprecate date_iso8601(). This one doesn't remove the usage of the deprecated function. And moving it to a service is hard to be used by the RDF mapping as callback. Ideas?
Comment #11
mpdonadioI'm fine with closing this as a dup; the other patch is further along. Pretty sure I created this when we only wanted to deprecate things (and before the trigger error decision), and not start removing usages.