The bug seems to be happening whenever you update the start time of a repeating event, so it should be pretty easy to see when it is happening. On the other hand, I'm not sure if it is happening 100% of the time, so if it looks like it is working fine, try to edit it again.
I think part of this bug has to do with the change in workflow.
Version 1.30 of eventrepeat works like this:
1. User creates an event
2. User saves a repeat event for that event, spawning additional events
3. User possibly updates the event information, calling _eventrepeat_update_nodes
4. User possibly updates the repeat schedule, calling _eventrepeat_form_submit
Bringing the repeat form into the node form (post version 1.31) makes the workflow look something more like this:
1. User creates an event, saves the repeat data, and spawns the additional nodes, all in one action.
2. User goes back and changes the event information and repeat information.
For this second action, I am calling _eventrepeat_form_submit (renamed to _eventrepeat_save_repeat), followed by a call to _eventrepeat_update_nodes. Both need to update the event timestamps: the first to possibly remap nodes and the second to possibly update the time of day on any siblings to this node. One possibility is that this one-two step is double adjusting the times. Hope that helps.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | repeat_update.patch | 24.14 KB | hunmonk |
Comments
Comment #1
hunmonk commentedthe event_repeat_calendar_map table is generated using UTC timestamps, and i remember having problems w/ user edits of repeat patterns because the user is not operating in UTC most of the time--for example, 7pm EST is actually _tomorrow_ in UTC. i had originally put in some correcting code to solve this issue, but it sounds like the change in workflow has disrupted it. :)
i'll try to have a look at this very soon.
Comment #2
hunmonk commentedapologies for not getting to this sooner. i can have a look at it after the code freeze if it's still open at that time...
Comment #3
hunmonk commentedthis is still on my radar. plan is to get it fixed within the next week.
Comment #4
hunmonk commentedi've started looking into this, but it looks like it's going to take awhile to track down the problem. i'll work on it more over the next week or so...
Comment #5
hunmonk commentedattached patch corrects the issue--couple of things were wrong:
the patch is rather large, because it also removes a bunch of extra whitespace that shouldn't be in there anyways.
Comment #6
hunmonk commentedComment #7
seanbfuller commentedLooks great so far.
Given the complexity of the eventrepeat module, I invite everyone to come by and test this. I'm hoping to have a new 4.7 version by next week.
Comment #8
(not verified) commented