{{ event.calendarizeHandle.next|date('D. j F Y') }} now returns error Object of class unionco\calendarize\models\Occurrence could not be converted to string
Expected
In previous version, this returned Fr. 15 februari 2019
Workaround
Use {{ event.calendarizeHandle.next.format('D. j F Y') }}
or {{ event.calendarizeHandle|date('D. j F Y') }}
Missed this in my last commit. I added the toString method to the Occurrence model now. As I mentioned in issue #13, using the date twig filter would work better than the format method to ensure localization.
Using the latest version
1.2.3
Bug
{{ event.calendarizeHandle.next|date('D. j F Y') }}
now returns errorObject of class unionco\calendarize\models\Occurrence could not be converted to string
Expected
In previous version, this returned
Fr. 15 februari 2019
Workaround
Use
{{ event.calendarizeHandle.next.format('D. j F Y') }}
or{{ event.calendarizeHandle|date('D. j F Y') }}