plenta/contao-jobs-basic-bundle

Insert-Tag `{{job::datePosted}}` prints the current date

Closed this issue · 0 comments

There are two problems in the following lines, as far as I understand correctly:

if ('datePosted' === $chunks[1]) {
$objPage = $GLOBALS['objPage'] ?? null;
return Date::parse($elements[1] ?? ($objPage->dateFormat ?? Config::get('dateFormat')));
}

  1. $elements doesn't exist
  2. $jobOfferData->datePosted should be passed as the second parameter to Date::parse