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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mpdonadio created an issue. See original summary.

mpdonadio’s picture

Status: Active » Needs review
FileSize
790 bytes

Status: Needs review » Needs work

The last submitted patch, 2: 2715657-02.patch, failed testing.

mpdonadio’s picture

Status: Needs work » Needs review
FileSize
1.34 KB
447 bytes

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

claudiu.cristea’s picture

I 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?

mpdonadio’s picture

Status: Needs review » Closed (duplicate)
Related issues: +#2999989: Deprecate date_iso8601()

I'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.