Issue Bug Closed

#85246SaveToDatabase finisher should convert DateTime Objects to string

Ralf Zimmermann 06/12/18, 18:53 updated 10/02/18, 10:46

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

Reviews 2