Calendar isAllDay()

Permalink
Hey all. Can anyone tell me how the "isAllDay()" function is used? I am trying to have the time of an event only display if the event is not 'all day'.

if ( !$occurrence->isAllDay() ) { 
  echo 'not all day'; 
}


Thanks in advance for any input.
Chris

 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi Chrouglas,

I believe this open issue affects the isAllDay() method.
"All-day event dates and date formating prevents proper Calendar block display #6440"
https://github.com/concrete5/concrete5/issues/6440...

isAllDay()
https://github.com/concrete5/concrete5/blob/e14b3840a9d255e0d3801c29...
Chrouglas replied on at Permalink Reply
Cool. Thanks for letting me know.

Cheers
Chris
MrKDilkington replied on at Permalink Reply
MrKDilkington
@Chrouglas

I recommend leaving a comment on the issue to attract attention to it.

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.