Issue Bug Closed

#106401Nullable integer based time fields store consider 0 as empty value

Benjamin Franzke 03/20/25, 13:49 updated 08/12/25, 14:35

Description

Nullable integer based datetime fields do not respect the nullable setting and are autogenerated with default=0 instead of default=null since #97367.

Also, with the following configuration:

 'inputdatetime_23' => [
     'label' => 'inputdatetime_23',
     'description' => 'format=datetime nullable=true',
     'config' => [
         'type' => 'datetime',
         'nullable' => true,
     ],
 ],

The value “1970-01-01 00:00” (with $GLOBALS['TYPO3_CONF_VARS']['SYS']['phpTimeZone'] = 'UTC';) is shown as an empty value in FormEngine after persistence.

It show show “1970-01-01 00:00” instead.

Reviews 2