Bug #88695
closedBug beetween date prefill and the current date
0%
Description
Hello,
On Typo3 v9, we have a problem on the date fields prefilled by the current date in the back end.
The date does not seem to be that of the day, but that of the last connection.
By emptying the caches, the bug disappears, and the date is correct.
Any idea?
Thanks you
Files
Updated by Andreas Kienast over 5 years ago
- Status changed from New to Needs Feedback
Thank you for your report.
Where does this field come from, it doesn't look like a field provided by TYPO3 itself. Can you please show the TCA for that specific field?
Updated by Andreas Kießling over 5 years ago
The TCA data is cached for quite some versions now, so you can not put any dynamic values in there directly.
I'm not aware of any solution to this by pure configuration, but you can have a look at news and tt_news on how to load the current date with a hook in a new record:
https://github.com/georgringer/news/blob/master/Classes/Backend/FormDataProvider/NewsRowInitializeNew.php
https://github.com/georgringer/news/blob/master/ext_localconf.php#L121
https://github.com/rupertgermann/tt_news/blob/master/Classes/Form/FormDataProvider.php
https://github.com/rupertgermann/tt_news/blob/master/ext_localconf.php#L72
Updated by Riccardo De Contardi about 5 years ago
- Status changed from Needs Feedback to Closed
No feedback for the last 90 days - I think it is safe to close this one for now.
See also https://forge.typo3.org/issues/86038#note-7 on this topic
If you think that this is the wrong decision please reopen it or ping me. Thank you.