Hey all - anyone run into this problem? Or maybe Brent Wilson’s around to have a look?
I have Repeet setup and working (mostly) fine for my events calendar - but am having an add problem. For certain repeating events, when I list the upcoming occurrences of those events, they all display one-day ahead of their actual scheduled occurrences. So if they’re scheduled to repeat every Sunday, they are listed as every Monday.
The bizarre thing is that they display properly on my calendar view - it’s only when I’m listing the events on my detail page that they are off.
Even more bizarre - it only happens with certain events - not all, even though they repeat on the same frequency (weekly).
Example:
Calendar: http://www.mothersource.org/calendar/
Take a look at Wednesday’s repeating class “MotherWise Prenatal Yoga”. Every Wednesday.
But click for detail:
http://www.mothersource.org/calendar/event/70/
And voila - every Thursday!
However, look at Saturday’s repeating class: “Mama-Baby Yoga”. It displays correctly in both views.
http://www.mothersource.org/calendar/event/71/
I’m baffled. Both entries are entered in exactly the same manner, and the same template is displaying both, so I can’t imagine why this would be happening.
Also - any entry that’s set to “none” for its repeat interval shows an “upcoming occurrence” of the same event, the day after the event date.
This is with EE 1.6.2 and RepEEt 1.0.7.
here’s my code for the “upcoming occurrences” display:
{exp:weblog:entries weblog="calendar" show_future_entries="yes"}
<div class="entry">
<h2>{title}</h2>
{if repeat_interval == "none" || repeat_interval == ""}
<h3>Date: {entry_date format="%D, %F %j%S %Y"}</h3>
{/if}
<strong>Details:</strong>
{body}
{if repeat_interval != "none" || repeat_interval != ""}
<strong>Upcoming dates:</strong>
<ul>
{exp:repeet:list_dates from="today" to="1 year" entry_date="{entry_date format="%Y-%m-%d %H:%i"}" expiration_date="{expiration_date format="%Y-%m-%d %H:%i"}" max_list="25" interval="{repeat_interval}"}
{repeet:include_dates}{include_dates}{/repeet:include_dates}
{repeet:exclude_dates}{exclude_dates}{/repeet:exclude_dates}
{repeet:display}
<li>{repeet:start_time format="%l, %F %j%S, %Y"}</li>
{/repeet:display}
{/exp:repeet:list_dates}
</ul>
{/if}
</div>
{/exp:weblog:entries}
Help?
Derek
Hi Derek,
I don’t know if I’ll be able to look at this over the weekend or not. If not, I’ll give it a look early next week. In the mean time, you might see if you notice any patterns in the events that work versus those that don’t. For example, take a look at the start dates and end dates, and the start times and end times. One of my hunches is that we’ll notice some patterns associated with where the events start and end relative to the start and end of Daylight Savings Time.
Thanks for the reply … actually, all of these events (those displaying properly, and those that are not) begin after DST, and none of them have DST active on their entry.
Oddly, though - the dates that were previously being listed as one day ahead are now listing correctly - with absolutely no change on my part I assure you. Last I checked it was Friday, and they were listing incorrectly. Now (Tuesday) - they are correct. I’ll keep checking to see if they go off on certain days of the week perhaps?
I’m now noticing too that the “this relative day of the month” interval is also not working correctly - it’s behaving like the “last this day of the month” interval. So my event that happens on the first Friday of every month is actually listed as having upcoming occurrences on the last Friday of every month. But only in the list of upcoming occurences - not on the calendar.
I’ve deactivated the listing of upcoming occurrences for now, as my client is understandably worried about confusing people - but I can setup a test page to demonstrate the behaviour if you like. I’d really love to be able to use this functionality!
An update on this after come observation of the irregularities … maybe this will help you hunt down the problem Mr. Wilson?
Here are my test pages:
Weekly event (Sunday): http://www.mothersource.org/calendar/event_test/72/ Weekly event (Monday): http://www.mothersource.org/calendar/event_test/80/ Weekly event (Wednesday): http://www.mothersource.org/calendar/event_test/70/ Weekly event (Saturday): http://www.mothersource.org/calendar/event_test/69/
When viewing these listings on Monday, Tuesday and Wednesday, all occurences listed correctly.
But when viewing these listings on Thursday and Friday:
Sunday start - listed one day ahead Monday start - OK Wednesday start - listed one day ahead Saturday start - OK
So bizarre! Any ideas?
Thanks, Derek
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.