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
Remove deprecated code from datetime module
\DATETIME_STORAGE_TIMEZONE
\DATETIME_DATETIME_STORAGE_FORMAT
\DATETIME_DATE_STORAGE_FORMAT
\datetime_date_default_time
\Drupal\datetime\Plugin\migrate\field\d6\DateField
\Drupal\datetime\Tests\DateTestBase
\Drupal\datetime\Tests\Views\DateTimeHandlerTestBase
\Drupal\Tests\datetime\Unit\Plugin\migrate\field\d6\DateFieldLegacyTest
\Drupal\Tests\datetime\Unit\Plugin\migrate\field\d6\DateFieldTest
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#6 | 3091528-6.patch | 17.49 KB | ravi.shankar |
#4 | 3091528-4.patch | 17.53 KB | el7cosmos |
Comments
Comment #2
el7cosmosComment #4
el7cosmosComment #5
Mile23$ git apply 3091528-4.patch
error: patch failed: core/modules/datetime/datetime.module:8
error: core/modules/datetime/datetime.module: patch does not apply
error: patch failed: core/modules/datetime/src/Plugin/migrate/field/d6/DateField.php:1
error: core/modules/datetime/src/Plugin/migrate/field/d6/DateField.php: patch does not apply
error: patch failed: core/modules/datetime/src/Tests/DateTestBase.php:1
error: core/modules/datetime/src/Tests/DateTestBase.php: patch does not apply
error: patch failed: core/modules/datetime/src/Tests/Views/DateTimeHandlerTestBase.php:1
error: core/modules/datetime/src/Tests/Views/DateTimeHandlerTestBase.php: patch does not apply
Comment #6
ravi.shankar CreditAttribution: ravi.shankar at OpenSense Labs commentedI have re-rolled patch #4.
Comment #7
jhedstromThis looks good to me.
Comment #9
catchCommitted ac90ec1 and pushed to 9.0.x. Thanks!
Comment #10
Kristen PolPer a Slack discussion with Gábor Hojtsy regarding usage of D9 tags (Drupal 9, Drupal 9 compatibility, Drupal 9 readiness, etc.), "Drupal 9 compatibility" should be used for contributed projects that need updating and "Drupal 9" was the old tag for D8 issues before the D9 branch was ready. Doing tag cleanup here based on that discussion.
Comment #12
andypostFollow-up #3109746: Remove remaining @deprecated code in the datetime module