0
votes

I am facing problem with tt_news in typo3 version 6.2.11. I can not set date above 2020 year. I can set till 31.12.2020 and after that all dates are disabled. I have taken 2 screenshot of it. Any hint or solution would help me.

Thanks

enter image description here

2

2 Answers

0
votes

tt_news has a hardcoded maximum for the end date, which in the version you're using is 31-12-2020. The best advice is to upgrade. TYPO3 6.2 isn't supported anymore.

However, if you need a quick fix, you'll need to change it in the TCA file of tt_news. You can find that in typo3conf/ext/tt_news/tca.php or typo3conf/ext/tt_news/Configuration/TCA/tt_news.php depending on which version of the extension you're using.

This file contains an array with the configuration of the fields for this table. For the field endtime it should contain something like this:

'range' => [
  'upper' => mktime(0, 0, 0, 31, 12, 2020)
]

You'll need to change that date.

0
votes

The range-array occurs twice in tca.php. The first occurrence should be updated

$TCA['tt_news']['columns']['endtime']['config']['range']['upper']

At the next one you can do as well

$TCA['tt_news_cat']['columns']['endtime']['config']['range']['upper']

My fault was to change the latter one without effect.