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
When opening the cron overview on /admin/config/system/cron/jobs
on PHP8.1, the following notice is thrown.
Deprecated function: Implicit conversion from float-string "1640598516.7726" to int loses precision in Drupal\Component\Datetime\DateTimePlus->__call() (line 360 of core/lib/Drupal/Component/Datetime/DateTimePlus.php).
Comment | File | Size | Author |
---|---|---|---|
#2 | ultimate_cron-3256142-deprecated-function-implicit.patch | 775 bytes | Arkener |
Comments
Comment #2
Arkener CreditAttribution: Arkener at INDICIA commentedComment #3
HnLn CreditAttribution: HnLn commentedRelated / cause (?): https://www.drupal.org/project/drupal/issues/3264979
Comment #4
monymirzaWorks #2.
Comment #5
solideogloria CreditAttribution: solideogloria commented#2 fixes it for me.
Comment #6
3liConfirming patch #2 works.
Comment #7
MaxMendez CreditAttribution: MaxMendez commentedPatch #2 fixes it for me, tested on 5 sites.
Comment #8
DieterHolvoet CreditAttribution: DieterHolvoet at Minsky commentedPatch #2 fixes the issue for me as well.
Comment #9
cobenashPatch #2 works.
Drupal 9.4.3
ultimate cron: 8.x-2.0-alpha5
Comment #10
arthur.baghdasar CreditAttribution: arthur.baghdasar commentedWorks for me.
Comment #12
BerdirThanks, committed.
Comment #13
joseph.olstadthanks for this one.
Comment #14
joseph.olstad@Berdir, can you please tag a 2.0.0-beta1 release ? alpha5 is from 2020, two years old and missing this php 8.1 fix