Hello community. I hope that someone can give me some help here.
I have a TypoLight 2.7 installation, and single date events (start date only, or same start and end dates) works fine.
However, as soon as a end date is specified to make it a 2 or more day event, I get this error:
Code:
Warning: date_format() expects parameter 1 to be DateTime, boolean given in /home/brtorg/public_html/templates/event_default.tpl on line 6
I also know some of the reason behind it. I have customised the template to change the date format to d F Y, because the Typolight default wasn't very user friendly.
So I changed the template from
Code:
<p class="info"><?php echo $this->date; ?></p>
to this
Code:
<p class="info"><?php echo date_format(date_create($this->date), "d F Y") ?></p>
Now the question. Is there any way I can make this work for the d F Y format so that I can display a date range? Or is this an issue with the 2.7 version of TL, and would I need to update?
Thanks for any answers!
Bookmarks