scheduler_field_type_publication not working if scheduled on same date

Created on 23 November 2020, about 4 years ago
Updated 17 October 2023, about 1 year ago

Problem/Motivation

When setting the "Start date" to a date and time today (i.e. "2020-11-23 12:40:00") and run cron, the entity is not published.
This is because in processSchedulerQuery() the dates are formatted with "Y-m-d" so the condition expands to "2020-11-23 12:40:00" < "2020-11-23" which is FALSE.

Steps to reproduce

* Add the scheduler field to an entity (i.e. a Paragraph) and fill in the start date with a time for today.
* Run cron

Proposed resolution

Use a format based on datetime_type set for the field.

Remaining tasks

* Create a patch

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇩🇪Germany stborchert

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024