Project

General

Profile

Actions

Bug #103693

closed

datetime fields rendering / TCA

Added by This Mächler 7 months ago. Updated 4 days ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2024-04-21
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
TCA, datetime, backend, record, edit
Complexity:
easy
Is Regression:
Sprint Focus:

Description

datetime fields are renderend differently (with timezone shift) in titles inside the record editor (record title, inline record title):

Correct in list view:

Incorrect in edit-view:

Incorrect in inline headers:

???

Elsewhere (Title in Record list in backend, also in Frontend and datetime edit field in backend) the rendering is correct, without timezone shift.

TCA (record with date displayed wrong, reffered record):

'label' => 'date_time',
'label_alt' => 'title, location_name, location_city',
'label_alt_force' => true,
...
...
'date_time' => array(
    'exclude' => 0,
    'label' => $LLL_nemtourdates_date.'date_time',
    'config' => array(
        'type' => 'input',
        'renderType' => 'inputDateTime',
        'dbType' => 'datetime',
        'eval' => 'datetime,requiered'
    ),
),

TCA edited record:

'label_alt' => 'last_name, first_name, date',
'label_alt_force' => true,
...
...
'date_time' => array(
    'exclude' => 0,
    'label' => $LLL_nemtourdates_ticketreservation.'date_time',
    'config' => array(
        'type' => 'input',
        'renderType' => 'inputDateTime',
        'dbType' => 'datetime',                
        'eval' => 'datetime'
    ),
),

'date' => array(
    'exclude' => 0,
    'label' => $LLL_nemtourdates_ticketreservation.'date',
    'config' => array(
        'type' => 'inline',
        'foreign_table' => 'tx_nemtourdates_domain_model_date',
        'overrideChildTca' => array(
            'types' => array(
                1  => array('showitem' => '--palette--;;show_short,--palette--;;price_short')
            ),
            'columns' => array(
                'location_name' => [ 'config' =>[ 'readOnly' => true ] ],
                'play' => [ 'config' =>[ 'readOnly' => true ] ],
                'price_regular' => [ 'config' =>[ 'readOnly' => true ] ],
                'price_kids' => [ 'config' =>[ 'readOnly' => true ] ],
                'price_reduced' => [ 'config' =>[ 'readOnly' => true ] ],
                'currency' => [ 'config' =>[ 'readOnly' => true ] ],
            )
        ),
        'behaviour' => array(
            'enableCascadingDelete' => false,
        ),
        'appearance' => array(
            'enabledControls' => array(
    'info' => true,
    'hide' => false,
    'delete' => false
    )
        ),
        'maxitems' => 1
    ),
),

Files

Actions #1

Updated by This Mächler 7 months ago

See this screenshot. It shows the core of the bug (compare title to datetime edit field

Actions #2

Updated by Chris Müller 7 months ago

  • Subject changed from datetime fields rendereding / TCA to datetime fields rendering / TCA
Actions #3

Updated by Benjamin Franzke 16 days ago

  • Description updated (diff)
Actions #4

Updated by Benjamin Franzke 15 days ago

  • Description updated (diff)
  • Status changed from New to Accepted
Actions #5

Updated by Benjamin Franzke 15 days ago

  • Description updated (diff)
Actions #6

Updated by Gerrit Code Review 15 days ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86917

Actions #7

Updated by Gerrit Code Review 15 days ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86917

Actions #8

Updated by Gerrit Code Review 15 days ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86917

Actions #9

Updated by Gerrit Code Review 4 days ago

Patch set 1 for branch 13.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87012

Actions #10

Updated by Gerrit Code Review 4 days ago

Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87008

Actions #11

Updated by Benjamin Franzke 4 days ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF