Project

General

Profile

Actions

Bug #81275

closed

Extensions Manager's TCA 'default' time()

Added by Loon Buster over 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extension Manager
Target version:
-
Start date:
2017-05-19
Due date:
% Done:

0%

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

Description

hello.


'config' => [
   'type' => 'input',
   'size' => 4,
   'eval' => 'time,required',
   'default' => time()
]

bad:

'default' => time(),

good:

'default' => mktime(date("G")+1,date("i"),0,1,1,1970)


+1 = Timezone ;)

.loon

Actions #1

Updated by Loon Buster over 7 years ago

  • Description updated (diff)
Actions #2

Updated by Jigal van Hemert over 7 years ago

  • Status changed from New to Needs Feedback

Where did you find this in the Extension Manager of TYPO3 CMS Core version 7? In the entire core I haven't found the combination "time,required" for the eval property. There are only four cases of 'default' => time(), two of which are in test scripts and none in the Extension Manager.

Actions #4

Updated by Riccardo De Contardi about 7 years ago

Sorry for the late answer, but I have not understood the reference to #79957, which is stated to be a duplicate of Bug #79249: TCA fields with eval types "time" or "timesec" are incorrectly stored in the database. which seems it has been already resolved... could you explain better?

Actions #5

Updated by Nicole Cordes about 7 years ago

If I'm correct, timestamps are always UTC, no need to handle any timezone.

Actions #6

Updated by Riccardo De Contardi almost 7 years ago

  • Status changed from Needs Feedback to Closed

No feedback since the last 90 days => closing this issue.

If you think that this is the wrong decision or experience the issue again and have more information about how to reproduce your problem, please reopen it or open a new issue with a reference to this one. Thank you.

Actions

Also available in: Atom PDF