[FEATURE] Add support for native date/time fields
authorXavier Perseguers <xavier@typo3.org>
Sun, 15 Jul 2012 15:01:23 +0000 (17:01 +0200)
committerSusanne Moog <typo3@susannemoog.de>
Fri, 17 Aug 2012 16:33:23 +0000 (18:33 +0200)
commitccd6b9d9f86dd008d4eb384f6737bbb9bc23c0f3
tree3808c19c09c0657e591be7477f436ee5a2a310e1
parent88a05980bafd187b9d86e2b165d11ff3489faa49
[FEATURE] Add support for native date/time fields

TYPO3 stores date and date/time values as a Unix timestamp.
This feature allows native database types to be used instead.

Native fields must be marked in the TCA using the key "dbType":

'my_native_date' => array(
    'exclude' => 0,
    'label' => 'My native date',
    'config' => array(
        'dbType'   => 'date',
        'type'     => 'input',
        'size'     => '8',
        'max'      => '20',
        'eval'     => 'date',
        'checkbox' => '0',
        'default'  => '0'
    )
),

Supported types for "dbType" are: date, datetime

Change-Id: I078047abd7a93e16cfca7f1fec3fe52109c6d347
Resolves: #38965
Releases: 6.0
Reviewed-on: http://review.typo3.org/12808
Reviewed-by: Marcus Schwemer
Tested-by: Marcus Schwemer
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
t3lib/class.t3lib_befunc.php
t3lib/class.t3lib_db.php
t3lib/class.t3lib_tcemain.php
t3lib/class.t3lib_transferdata.php