Defaults are not filled when the field has the type datetime

Created on 14 February 2023, almost 2 years ago
Updated 20 February 2023, almost 2 years ago

Problem/Motivation

If a field has the type datetime the default value that is returned by the form processor is not shown in the form. The effect is that no update forms can be created for date time fields.

Some background. The formsprocessor returns JSON and JSON has no standard date format. Drupal serializes the data in DateTime::ATOM (because this is the ISO standard). What is missing is a string to date conversion for this field.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇳🇱Netherlands Klaas Culemborg

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

Comments & Activities

Production build 0.71.5 2024