When using a week view of calendar, the events in 7th day (depending on which day is set the first day of a week, this could be Saturday or Sunday) will not be shown. I think it's due to an error in the for loop in the template. I've made a patch to fix it.
Just for some information on how to reproduce the issue: I've set the first day to Monday and the calendar week view doesn't show any events in Sunday.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

arlinsandbulte’s picture

Note: Marked #1712290: Events dont show up in all day field as a duplicate of this issue.

andyhu’s picture

has anyone experienced the same issue? if the patch works, can we get it committed since it's a quite obvious bug?

zeit_geist’s picture

Same thing here: multi-day event not showing up in weekly view when starting on Sunday.

I confirm the solution works great. Thx for @andyhu

torpy’s picture

Updated the patch so that it applies cleanly from inside the module directory instead of relying on a specific site structure.

hcethatsme’s picture

I'm confused. https://www.drupal.org/node/1989892 shows the issue fixed on 7.x-3.4, but is that a mistake? The code in 7.x-3.5 and 7.x-3.x still has the loop going from 0 to 5 only AFAICT. torpy's patch works perfectly. Can this be committed?

AlyssaMc’s picture

This patch stopped working when we updated to Drupal 7.39. Anyone else experiencing the same issue?

mrcharles’s picture

I seem to have this issue as well...

Lisaumd’s picture

Same for me. I edited the patch content into my template and still had to restore the Dates modules back to to see events on day 7. Now I can see the events but I have no up or down arrows for the date, and I have 4 events so I should have a arrows in the display. Other days, with multiple events, display the up and down arrows correctly. Any ideas?

jeffmasigan’s picture

I experienced the same issue when I did some updates. I was already on Drupal 7.39 and my Calendar module was at version 7.x-3.5.

One of the modules I updated was the Date module I was on 7.x-2.8 then I updated to 7.x-2.9 and the last day on my Calendar on week view stopped working. I've read some other forums that other days weren't showing up but it's the same issue because they had a different day of the week as their start day.

I fixed the issue by restoring a back-up of my website and updating everything but the Date module and things worked. Issue is probably a combination fix for Date and Calendar modules - or an issue with the calendar-week.tpl.php template.

Hope that helps!

mrcharles’s picture

@jeffmasigan Exactly right. The issue is with the update of Date module to 7.x-2.9 from 2.8 breaks the last day of the week on the calendar.

Nelson Lago’s picture

I am not sure if this is the same bug reappearing or a different bug with the same symptom. In any case, this one seems to be a duplicate: www.drupal.org/node/2580921 and this one seems to be the cause: www.drupal.org/node/1137062 .

Lisaumd’s picture

I had this issue, applied the patch in the template, restored to the previous Dates module and now I see the last day of the week in the week view but not the up or down arrows on that day. I have multiple events and the up and down arrows work for other days of the week just not Saturday. Any suggestions?

jeffmasigan’s picture

I have applied patch from #27 - https://www.drupal.org/node/1137062 and it worked

jeffmasigan’s picture

@Lisaumd - could you share what your template looks like?

Dave Gray’s picture

#27 is working well for us!

SeanA’s picture

bgrobertson’s picture

Just wanted to note, while applying patch that jeffmasigan mentions in #13 fixed normal events on the 7th day not showing up for me, it did not fix All Day events not showing up on the seventh day for me. I had to apply both patchs (#13 and #4) to fix this issue. I am using custom time groupings for my week view, which may be coming into affect.

marcoscano’s picture

In my case only applying the patch in #2673192-2: Modify remaining days to match Date week range patch was enough to completely solve the problem.

Lisaumd’s picture

We got it fixed, still on Date 7.x-2.8. What template did you want to see? I don't have file access but I think I get what you want to see and I'll try to get it posted here.

ianfunghk’s picture

Status: Needs review » Closed (works as designed)

No longer required to fix after applying patch from Date API, Date module. Ref:https://www.drupal.org/node/1137062

Anonymous’s picture

Status: Closed (works as designed) » Closed (duplicate)
Related issues:

With ianfunghk saying this was fixed by another patch, I'm thinking this should be marked as duplicate of https://www.drupal.org/node/1137062

Mykola Dolynskyi’s picture

#27 dont work, Date API 7.x-2.10, Calendar 7.x-3.5
@marcoscano ++, calendar-modify_remaining_days-2673192-2.patch (from Modify remaining days to match Date week range patch ) also helped in my case, thanks

catapipper’s picture

The patches for Date and Calendar mentioned in the comments above solved the issue for all scenarios except for one which is very specific and still needed the patch found here.

Specifics of scenario where this patch is only solution:

  • All Day event only happening on 7th day of week
  • Calendar Week view
  • Overlapping items disallowed

Thank you again for this patch!

varenius’s picture

I can confirm this is still a problem with the most recent Drupal 7.67, Calendar 7.x-3.5 and Date 7.x-2.10. Changing the lines suggested in the two patches
https://www.drupal.org/files/issues/2018-08-21/date-n1137062-65.patch
https://www.drupal.org/files/issues/calendar-7thdayeventdisplay-1779142-...
solves the problem for me.