Running 6.x-2.7. If we make an event that is set to repeating monthly, and then set the Advanced field to a Day of the Week, there seems to be a problem with the repeating time. That is, the first event in the chain will have the correct time, but all subsequent events have problems with timing; the duration will be correct but the time is wrong, so there are hour or two hour events, but they start at 12:00 A.M. rather than 2:00 P.M.
Seems to have the same problem if you just set to repeat
Has the same type of problem when set to repeat by year.

Comments

dougm’s picture

I'm seeing the same problem using the same version. It also exists with 6x-2.x-dev and 6x-2.6. Haven't tested back any further.
This is a freshly installed system.

peterpoe’s picture

Status: Active » Needs review
StatusFileSize
new1.37 KB

Here is a solution: time was ignored when calculating the next repeat date in _date_repeat_calc. I suspect this problem might affect Date 7.x, but I haven't tested.

peterpoe’s picture

StatusFileSize
new3.45 KB

This should cover all cases. Apparently, date_modify ignores time when adding/subtracting days?

peterpoe’s picture

StatusFileSize
new1.29 KB

Cleaner solution. Sorry for all the patches.

peterpoe’s picture

StatusFileSize
new1.68 KB

This should really catch everything. (sorry again).

jsdadmin’s picture

The patch seems to work for me; thanks!

karens’s picture

Status: Needs review » Closed (works as designed)

Unable to replicate any problem in the latest dev code. This may have been the PHP 5.3 problem that has since been fixed.

karens’s picture

Issue summary: View changes

Forgot the year problem