Deprecated usage of float time

Created on 18 May 2023, about 1 year ago

This is not a huge issue, but no point filling up the logs with it. If you have a lot of cron jobs then you get hundreds of these appearing after loading the cron admin page.

Deprecated function: Implicit conversion from float-string "1684417726.049" to int loses precision in Drupal\Component\Datetime\DateTimePlus->__call() (line 360 of core/lib/Drupal/Component/Datetime/DateTimePlus.php).

Drupal\Component\Datetime\DateTimePlus->__call('setTimestamp', Array) (Line: 204)
Drupal\Component\Datetime\DateTimePlus::createFromTimestamp('1684417726.049', Object, Array) (Line: 122)
Drupal\Core\Datetime\DateFormatter->format('1684417726.049', 'short') (Line: 52)
Drupal\ultimate_cron\CronJobListBuilder->buildRow(Object) (Line: 37)

We started seeing this after upgrading to PHP 8.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom Rob230

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024