Bug #73871

Problem with date Field

Added by Juraj Sulek over 5 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-03-02
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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


Related issues

Related to TYPO3 Core - Bug #69290: Dates get reduced by a day if before 1970Closed2015-08-24

Actions
Related to TYPO3 Core - Bug #37244: TCA date evaluation for dates lower 01-01-1970 failsClosed2012-05-17

Actions

Also available in: Atom PDF