Project

General

Profile

Actions

Bug #79975

closed

TCA -> input -> eval: 'time' not relative timestamp

Added by Mario Matzulla about 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2017-02-23
Due date:
% Done:

0%

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

Description

Hi,

any 'time' field in my extension (cal) produces absolute timestamps, not relative like described: The display will be like "23:45" while the database will be "85500"
I'm getting: 1487886300

My tca:

'start_time' => array(
                    'exclude' => 1,
                    'label' => 'LLL:EXT:cal/Resources/Private/Language/locallang_db.xml:tx_cal_event.start_time',
                    'displayCond' => 'FIELD:allday:!=:1',
                    'config' => array(
                            'type' => 'input',
                            'size' => '12',
                            'max' => '20',
                            'eval' => 'time',
                            'default' => '0'
                    )
            ),

Files

diff.txt (2.32 KB) diff.txt Mario Matzulla, 2017-03-03 15:19
patch.txt (2.83 KB) patch.txt Mario Matzulla, 2017-03-03 16:12

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #79730: Fix date related acceptance testsClosed2017-02-10

Actions
Is duplicate of TYPO3 Core - Bug #79249: TCA fields with eval types "time" or "timesec" are incorrectly stored in the databaseClosedMarkus Klein2017-01-10

Actions
Actions

Also available in: Atom PDF