Hello,
The repeat criteria that I've set is:
Repeats every month first Sunday until Thu Dec 31 2009
It generated the following repeats:
Sunday, 1 March 2009 9:00am - 7:00pm
Sunday, 5 April 2009 9:00am - 7:00pm
Sunday, 3 May 2009 9:00am - 7:00pm
Sunday, 5 July 2009 9:00am - 7:00pm
Sunday, 2 August 2009 9:00am - 7:00pm
Sunday, 6 September 2009 9:00am - 7:00pm
Sunday, 4 October 2009 9:00am - 7:00pm
Sunday, 1 November 2009 9:00am - 7:00pm
Sunday, 6 December 2009 9:00am - 7:00pmNotice that June 2009 is missing? Could this be the same problem discussed in http://drupal.org/node/362926 ? Any solution or workaround?
Thank you.
Versions:
- Drupal 6.9
- date-6.x-2.0-rc6
- cck-6.x-2.1
- calendar-6.x-2.0-rc6
- views-6.x-2.3
Comments
Comment #1
karens commentedI assume you're using a PHP version less than PHP 5.2 along with the Date PHP4 module. That's where these problems usually lie. I can't replicate this in the latest -dev code, which has had some PHP4 fixes.
Comment #2
hongleong commentedHello KarenS,
I'm using PHP 5.2.8, and the "Date PHP4" module isn't enabled.
I'm running v6.x-2.0-rc6 and not the latest -dev code though. Can that be the cause?
Pardon me, but I've switched the status from "fixed" to "active" again.
Thanks in advance for helping.
For now, I'm working around the issue by creating another duplicate node for the missing date, but it's problematic because I must not publish it so that it's hidden from normal view, but yet still show up in the calendar view. However, when that calendar entry's link is clicked on, it throws the "Access Denied" error message because it is not published.
Comment #3
karens commentedWe don't fix bugs in releases, we fix them in -dev. If you have a bug you need to see if it persists in -dev or wait for the next release. If it is still a bug in -dev the issue should remain open and I'll need info on how to reproduce. But I can't create this behavior in -dev, so I think it's fixed, and if so the issue is closed.
Comment #4
kstrauser commentedI can duplicate this with Drupal 6.9 and Date 6.x-2.x-dev from 2009-02-12:
Time:
01/06/2009 7:30pm - 9:00pm
Repeats every month first Tuesday until Mon Dec 31 2012
02/03/2009 7:30pm - 9:00pm
03/03/2009 7:30pm - 9:00pm
05/05/2009 7:30pm - 9:00pm
Comment #5
karens commentedIf you still see this you need to first get the very latest -dev version of the code (including today's fixes which won't be in the tarball until tomorrow). If you have problems in the latest code I need to know:
1) What version of PHP are you using.
2) What are your site defaults for first day of the week and timezone.
3) Exactly how is the date field set up that is behaving this way -- type of date, type of widget, timezone settings, etc.
4) Exactly what options did you choose when creating the repeating date.
Comment #6
kstrauser commentedI just installed -dev from 2009-03-25 and still get the same problem.
1) I'm using PHP 5.2.9
2) Sunday, America/Chicago
3) Datetime; Select List with Repeat options; Required with an optional To Date; Granularity to the minute; Default Display is Time default; Time zone is Site's time zone; Repeat display is Collapsed.
4) Repeat "Every Months"; until 2010-12-30; Advanced: Any month, Any day, First Tuesday with no exceptions.
I made an interesting discovery. If I change the repeat to First Monday, I see:
Repeats every month on the first Monday until Fri Dec 31 2010 .
01/06/2009 7:30pm - 9:00pm
02/02/2009 7:30pm - 9:00pm
03/02/2009 7:30pm - 9:00pm
04/06/2009 7:30pm - 9:00pm
05/04/2009 7:30pm - 9:00pm
06/01/2009 7:30pm - 9:00pm
07/06/2009 7:30pm - 9:00pm
If I change it back to First Tuesday, I get:
Repeats every month on the first Tuesday until Fri Dec 31 2010 .
01/06/2009 7:30pm - 9:00pm
02/03/2009 7:30pm - 9:00pm
03/03/2009 7:30pm - 9:00pm
05/05/2009 7:30pm - 9:00pm
06/02/2009 7:30pm - 9:00pm
08/04/2009 7:30pm - 9:00pm
Comment #7
couloir007 commentedI think this is the same as http://drupal.org/node/369020, but I'll add my observations here. Let's say I schedule an event for the first Sun of the month, for June 2009, the month starts on Monday, which means that the first Sunday is the 7th. June will be skipped. I've confirmed this, and I've also confirmed it for other months such as the first Thursday of the month and May 2009, the date would be the 7th, so it is tied to the 7th. If the first particular day of the month is 6 days after the 1st, it's skipped. Below, May 2009, January 2010, and October 2010 are all missing. In each case, the 1st of the month was Friday, and if you try it for any first particular day of the month, this pattern holds true.
Thursday, March 5, 2009 5:00pm - 7:00pm
Thursday, April 2, 2009 5:00pm - 7:00pm
Thursday, June 4, 2009 5:00pm - 7:00pm
Thursday, July 2, 2009 5:00pm - 7:00pm
Thursday, August 6, 2009 5:00pm - 7:00pm
Thursday, September 3, 2009 5:00pm - 7:00pm
Thursday, October 1, 2009 5:00pm - 7:00pm
Thursday, November 5, 2009 5:00pm - 7:00pm
Thursday, December 3, 2009 5:00pm - 7:00pm
Thursday, February 4, 2010 5:00pm - 7:00pm
Thursday, March 4, 2010 5:00pm - 7:00pm
Thursday, April 1, 2010 5:00pm - 7:00pm
Thursday, May 6, 2010 5:00pm - 7:00pm
Thursday, June 3, 2010 5:00pm - 7:00pm
Thursday, July 1, 2010 5:00pm - 7:00pm
Thursday, August 5, 2010 5:00pm - 7:00pm
Thursday, September 2, 2010 5:00pm - 7:00pm
Thursday, November 4, 2010 5:00pm - 7:00pm
Comment #8
couloir007 commentedline 474 of date_repeat_calc.inc "function date_repeat_set_month_day($date_in, $day, $count = 1, $direction = '+')"
change "date_modify($date, '-1 day')" to "date_modify($date, '0 day')"
solves this particular problem, not sure what the repercussions to the rest of the module are.
Comment #9
couloir007 commentedComment #10
kstrauser commentedThat fixes it, at least through 2009. Thanks, and here's to hoping for no side effects!
Comment #11
ericm commentedThis thread is a duplicate of:
#369020: "Every First Saturday" skips Feb, March
as are these:
#416942: Repeating date not correctly showing
#362926: February is Skipped When Repeat is "Every Month / Last Saturday"
The cause appears to be a PHP bug, described here and here. I posted a detailed sandbox test with the latest -dev versions and all the database and settings described here, for anyone that wants to replicate and debug.
Comment #12
karens commentedThis is apparently the same problem as #369020: "Every First Saturday" skips Feb, March Let's consolidate on that issue.