Issue Bug Closed

#30208Timepicker can't changed oldValue

Guido S. 09/22/11, 17:51 updated 09/25/11, 17:50

Description

If i start a new recordset and will set a new “datetime” i get an Javascript error:
oldValue is undefined
date.setHours(oldValue.getHours());

If we set an default value like

'default'  => mktime(date('h'),date('i'),0,date('m'),date('d'),date('Y')),
all is okay.

The problem exist only in TYPO3 4.4.11. In TYPO3 4.5.6 it’s fine.

Configuration:

'starttime' => array (
            'exclude' => 1,
            'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
            'config'  => array (
                'type'     => 'input',
                'size'     => '8',
                'max'      => '20',
                'eval'     => 'datetime',
                'default'  => '0',
                'checkbox' => '0'
            )
        ),

Reviews 0

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