Project

General

Profile

Actions

Bug #85246

closed

SaveToDatabase finisher should convert DateTime Objects to string

Added by Ralf Zimmermann almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Category:
Form Framework
Target version:
-
Start date:
2018-06-12
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The SaveToDatabase finisher should convert DateTime Objects to string.
Currently this example will fail.

type: Form
identifier: test1
label: test1
prototypeName: standard
finishers:
  -
    identifier: SaveToDatabase
    options:
      -
        table: 'tt_content'
        mode: insert
        elements:
          'datepicker-1':
            mapOnDatabaseColumn: 'tstamp'
          'date-1':
            mapOnDatabaseColumn: 'crdate'
renderables:
  -
    type: Page
    identifier: page-1
    label: Step
    renderables:
      -
        type: Date
        identifier: date-1
        label: Date
        defaultValue: ''
      -
        type: DatePicker
        identifier: datepicker-1
        label: 'Date picker (jQuery)'
        properties:
          dateFormat: Y-m-d
          enableDatePicker: true
          displayTimeSelector: false

Actions

Also available in: Atom PDF