plenta / contao-jobs-basic-bundle

Contao Job Manager
https://plenta.io/contao-erweiterungen/jobs-basic
GNU Lesser General Public License v3.0
23 stars 7 forks source link

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

Closed MarkejN closed 2 months ago

MarkejN commented 2 months ago

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

https://github.com/plenta/contao-jobs-basic-bundle/blob/fd6a01dbcf96e18fdbcdc6701555d7b70eb50ae3/src/Plenta/ContaoJobsBasic/EventListener/Contao/InsertTagListener.php#L86-L89

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