Hi Christian,
Thank you for your detailed feedback and for sharing the suggested fix.
We understand the issue. The warning occurs because $currentDate is not always properly initialized in development mode, which can lead to a PHP warning when comparing dates.
Your suggested approach using Factory::getDate()->format('Y-m-d H:i:s') is noted. However, in Joomla best practices, we will ensure a consistent date object is used and properly defined before comparison to avoid repeated calls and maintain performance and clarity.
We will include a proper fix in upcoming template updates to ensure compatibility across all environments and remove such warnings in future versions of the Travus template.
Thank you again for contributing to the improvement of the template.
Best regards.