Field with dbType = 'time' and eval 'time' not saved correctly to the database
When using native timefield in database and input with eval 'time', the entered value is not correctly saved in the database. When showing the form again, that wrong value from the database is shown.
When the field is changed, the new value is internally stored as an integer in the backend interface. When submitted it is then used as date string, when converting the field value to a timestamp, which leads to a wrong datetime.To reproduce configure a field as follows:
- database field is set to
- field TCA type set to
- field TCA dbType set to
- field TCA eval set to
This behaviour is present in v9, v10 and master.
#1 Updated by Gerrit Code Review 12 days ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/65735