The creation time plugin uses the wrong date

Created on 14 May 2024, 6 months ago

I configured the creation-plugin so that it deletes revisions older than 2 years.
I have a node for which the revision overview shows revisions older than 2 years.
But these revisions are never deleted.

I digged in a little but and it looks like the revision changed time is assumed as the revision creation time:

// The timestamp of the created revision is stored in the changed field.
$creation_time = $revision->getChangedTime();

This is incorrect. A past revision can be changed.

The appropriate way to get a revision's creation time is the getRevisionCreationTime() method. This method gets the timestamp stored under the revision_timestamp key (which is the same value that is used in the node revision overview).

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇧🇪Belgium rp7

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

Comments & Activities

Production build 0.71.5 2024