Issue Bug Closed

#53640js validation for datetime + required doesn't work for below 1970

Georg Ringer 11/14/13, 14:17 updated 01/09/15, 04:45

Description

If an input field got as eval “datetime,required”, the validation fails as soon as the given date is below 1970.

if the required is removed, everything is fine.

As an example: use ext:news and the datetime field.

        'datetime' => array(
            'exclude' => 0,
            'l10n_mode' => 'mergeIfNotBlank',
            'label' => $ll . 'tx_news_domain_model_news.datetime',
            'config' => array(
                'type' => 'input',
                'size' => 12,
                'max' => 20,
                'eval' => 'datetime',
                'default' => mktime(date('H'), date('i'), 0, date('m'), date('d'), date('Y'))
            )
        ),

tested in master but should be testable in any supported branch

Reviews 0

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