Issue Bug Closed

#73871Problem with date Field

Juraj Sulek 03/02/16, 14:53 updated 10/02/18, 11:18

Description

We have discovered one bug with date field

sql:
birthday date DEFAULT ’0000-00-00’,

TCA:
’birthday’ => array(
‘exclude’ => 1,
‘label’ => ‘Birthday’,
‘config’ => array(
‘dbType’ => ‘date’,
‘type’ => ‘input’,
‘size’ => 7,
‘eval’ => ‘date’,
‘checkbox’ => 0,
‘default’ => ’0000-00-00’
),
),

if the date in the field is bigger then 1.1.1970 all works fine. But if the date ist lower for example 1.1.1969. This happens:
- FE shows 1.1.1969 – OK
- BE list-view shows 1.1.1969 – OK
but if the record is open for editing the field is filled with date -1 DAY – in this case the date 31.12.1968

Reviews 4