typo3tt-news

Typo3 tt_news disabled date


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


Solution

  • 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.