Project

General

Profile

Actions

Bug #77935

closed

time field in TCA is rendered in FE with an excess of 1 hour

Added by Jérémie Roulin over 7 years ago. Updated almost 7 years ago.

Status:
Rejected
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-09-13
Due date:
% Done:

0%

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

Description

Hi there,

I have a time field in backend (see TCA configuration for it bellow) and if I choose for example 10:00 it renders 11:00 in FE. Data is stored as timestamp in the database and I use FormatDateViehelper to render it.

TCA configuration :

        'finish_time' => [
            'label' => 'Finish time',
            'config' => [
                'type' => 'input',
                'size' => 8,
                'max' => 20,
                'eval' => 'time',
                'default' => 3600
            ]
        ],

ext_tables.sql entry :

CREATE TABLE tx_myext_domain_model_mymodel (
    finish_date int(11) unsigned DEFAULT '0' NOT NULL,
);

Model :

    /**
     * @var \DateTime
     * @validate DateTime, NotEmpty
     */
    protected $finishTime = null;

Render method :

<f:format.date format="%H:%M">{mymodel.finishTime}</f:format.date>

Can someone confirm this bug?

Thank you,
Jérémie

Actions

Also available in: Atom PDF