I’ve created an events listing which lists channel entries by month. Above the listing is a calendar that contains links to the entries.
In the attached images you will see events listings for June 2013 and July 2013. There’s an event on 1st of July but the calendar link for it appears in the calendar for June! After testing in multiple months I’ve found this bug is consistent.
I’ve applied the following code straight from the Calendar Module tag page and modified the channel and set it to show future entries. Unfortunately it works exactly the same as my original code which has me really stumped. The site was built using EE 2.5.2 and out of interest I did a comparison of the Calendar Module code from the latest version of EE but both files are identical bar the version number.
If anyone has any ideas on what’s happening I’d be grateful.
Thanks
{exp:channel:calendar switch="calendarToday|calendarCell" channel="events" show_future_entries="yes" start_day="monday"}
<table class="calendarBG" border="0" cellpadding="6" cellspacing="1" summary="My Calendar" width="90%">
<tr class="calendarHeader">
<th>
<div class="calendarMonthLinks">
<a href="http://{previous_path=channel/cal}"><<</a>
</div>
</th>
<th colspan="5">{date format="%F %Y"}</th>
<th>
<div class="calendarMonthLinks">
<a href="http://{next_path=channel/cal}class=calendarMonthLinks">>></a>
</div>
</th>
</tr>
<tr>
{calendar_heading}
<td class="calendarDayHeading">{lang:weekday_abrev}</td>
{/calendar_heading}
</tr>
{calendar_rows}
{row_start}<tr>{/row_start}
{if entries}
<td class='{switch}' align='center'>
<a href="http://{day_path=/sports/events}">{day_number}</a>
</td>
{/if}
{if not_entries}
<td class='{switch}' align='center'>{day_number}</td>
{/if}
{if blank}
<td class='calendarBlank'>{day_number}</td>
{/if}
{row_end}</tr>{/row_end}
{/calendar_rows}
</table>
{/exp:channel:calendar}