Project

General

Profile

Actions

Bug #88695

closed

Bug beetween date prefill and the current date

Added by X B almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2019-07-05
Due date:
% Done:

0%

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

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

typo_date.PNG (34 KB) typo_date.PNG X B, 2019-07-05 14:36
Actions #1

Updated by Andreas Kienast almost 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?

Actions #2

Updated by Andreas Kiessling almost 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

Actions #3

Updated by Riccardo De Contardi over 4 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.

Actions

Also available in: Atom PDF