I have a channel for upcoming events which displays in a few places on my site. One of the fields is the events date which I use to sort the list and display a little icon for the page. There’s a conditional that checks to see if the date is today through 60 days out. I’m using a little php to calculate the 60 days from today. This has been working for over 6 months with no issues.
For some reason events are now getting cut off at June 15, 2011. Nothing I did (including removing the date filter and turning off php) fixed the problem. Randomly I changed the sort order from ascending to descending, and there were my missing events. Changing the sort order back to ascending again truncated at June 15, 2011.
Here the beginning of my code if it helps:
{exp:channel:entries channel="events" orderby="event_date_icon" sort="asc" dynamic="no"}
{if event_date_icon >= current_time && event_date_icon <= <?php echo strtotime("60 days"); ?>}
<div class="event">
<div class='date'>
<div class='month'>{event_date_icon format="%M"}</div>
<div class='day'>{event_date_icon format="%d"}</div>
</div>
<div class="event_info">
...Any ideas of why this may be happening? Thanks!