The entity_created data producer expects $entity->getCreatedTime() to be an int, but is is a string

Created on 7 August 2025, 22 days ago

Problem/Motivation

In the entity_created data producer contains the following code:

      $datetime = new \DateTime();
      $datetime->setTimestamp($entity->getCreatedTime());

$datetime->setTimestamp expects the parameter to be an int value, but $entity->getCreatedTime() returns - to my surprise - a string.

Steps to reproduce

Just use the data producer with a node and a MySQL database.

Proposed resolution

cat returned value of getCreatedTime() to int.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

5.0

Component

Code

Created by

🇩🇪Germany daniel.bosen

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

Comments & Activities

Production build 0.71.5 2024