Issue Bug Closed

#88695Bug beetween date prefill and the current date

X B 07/05/19, 14:38 updated 10/08/19, 21:44

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

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Files 1

History 3

  1. Andreas Kienast commented and changed status New Needs Feedback 07/05/19, 16:59

    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?

  2. Andreas Kießling commented 07/07/19, 22:58

    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

  3. Riccardo De Contardi commented and changed status Needs Feedback Closed 10/08/19, 21:44

    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.