The old way of storing these events was the backend would set the start time as 00:00 and the finish time as 23:59. Then, we had something like this in the templates which spotted an all day event and changed display accordingly:
Code: Select all
{if $event.event_date_start|date_format:"%l:%M %P" == "12:00 am" && $event.event_date_end|date_format:"%l:%M %P" == "11:59 pm"}...
So, how to detect the flag?
After a bit of digging in the new default templates, I saw the code you need to check for this new flag. And so here is the sort of code change you need to detect the original "00:00/23:59" all day events and the new all day events with the all day flag set:
Code: Select all
{if ($event.event_date_start|date_format:"%l:%M %P" == "12:00 am" && $event.event_date_end|date_format:"%l:%M %P" == "11:59 pm") OR $event.event_all_day == "1"}...
Hope this saves some people some time.