Feature #38965
closedAdd support for native date/time fields
100%
Description
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 as such in the TCA using the "xtype" key:
'native_date' => array( 'exclude' => 0, 'label' => 'LLL:EXT:test_nativedate/locallang_db.xml:tx_testnativedate_example.native_date', 'config' => array( 'xtype' => 'date', 'type' => 'input', 'size' => '8', 'max' => '20', 'eval' => 'date', 'checkbox' => '0', 'default' => '0' ) ),
"xtype" can be one of following value:
- date
- datetime
and works for any "type" of field.
Files
Updated by Xavier Perseguers over 12 years ago
- File T3X_test_nativedate.t3x T3X_test_nativedate.t3x added
This test extension can be used to test that native and timestamp-based date and date/time fields can be properly handled by TYPO3.
Updated by Xavier Perseguers over 12 years ago
DBAL handling (and enhancement of SQL parser) will be added once this approach has been accepted.
Updated by Gerrit Code Review over 12 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/12808
Updated by Gerrit Code Review over 12 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/12808
Updated by Xavier Perseguers over 12 years ago
This new version of the test extension supports the key "dbType" instead of "xtype" because reviewers ask for a better naming.
Updated by Xavier Perseguers over 12 years ago
- File convert-columns.php convert-columns.php added
Small script to convert existing data.
Updated by Xavier Perseguers over 12 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset ccd6b9d9f86dd008d4eb384f6737bbb9bc23c0f3.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed