Bug #81275
closedExtensions Manager's TCA 'default' time()
0%
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
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.
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?
Updated by Nicole Cordes about 7 years ago
If I'm correct, timestamps are always UTC, no need to handle any timezone.
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.