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.
As described in the change notice: Time Service Added and REQUEST_TIME deprecated
Comment | File | Size | Author |
---|---|---|---|
#9 | 2933455-9.patch | 13.34 KB | TR |
| |||
#7 | ppc2.patch | 7.96 KB | TR |
| |||
#5 | ppc.patch | 7.93 KB | TR |
#4 | rt.patch | 4.01 KB | TR |
| |||
#2 | 2933455-2.patch | 23.2 KB | TR |
|
Comments
Comment #2
TR CreditAttribution: TR commentedHere's a patch for all of the time() and about half of the REQUEST_TIME. All of the remaining REQUEST_TIME need to have the service injected, which will take a little more work. I only did that for a few of the cases in this patch, the rest are procedural calls which can't use injection.
Comment #4
TR CreditAttribution: TR commentedA few more.
Comment #5
TR CreditAttribution: TR commentedRelated patch for PayPalController. Injecting REQUEST_TIME, but there are also a lot of other services that need injecting, so doing them all at once.
Comment #7
TR CreditAttribution: TR commentedFix typo.
Comment #9
TR CreditAttribution: TR commentedInject datetime.time into some forms ...