Issue Bug Closed

#37244TCA date evaluation for dates lower 01-01-1970 fails

Tobias Klepp 05/17/12, 09:02 updated 03/23/20, 15:47

Description

I configured in TCA the birthday in my own extension table as a required date field. If I try to enter a birthday like 10-4-1965 I see always the yellow alert icon and I cant save the record, because the system say, that I must fill out all required fields. The timestamp for dates lower then 01-01-1970 are negative. I think, that’s the problem.

This is my TCA configuration:

'birthday' => array (
  'exclude' => 1,
  'label' => 'LLL:EXT:ams_eventmanager/locallang_db.xml:tx_amseventmanager_registrations.birthday',
  'config' => array (
    'type'     => 'input',
    'size'     => '8',
    'max'      => '20',
    'eval'     => 'required,date',
    'checkbox' => '0',
    'default'  => '0',
  )
),

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.