It seems there is a bug in the pager -- when moving forward a month from March 2015, it goes to May 2015 and skips April. When you go back a month from May, it will then show April.

This happens consistently and only seems to happen with April. The other months move forward normally.

"Skip empty pages" option from #2 can slow down server. My server is always slow under Drupal, it is not a solution.

Comments

zombree’s picture

Hey, I had this issue too. The calendar was skipping not just April, but also February, June, September, and November -- but only when you clicked forwards in time, not if you were going backwards in time (wtf?!). It was driving me crazy, but I think I fixed it. Here's how:

In your calendar view, you should have a contextual filter called something like Date: Date (node) (Content: Date - start date (field_date)).

Click on that contextual filter, and scroll down to the granularity settings. When I changed the granularity from Month to Day, it solved my issue.

jszupi’s picture

#1 is not a solution - it comes to show month calendar with day granurality, what is not something we want to have
Problem with month can be save when "Skip empty pages" option is checked in pager options in views.

But the problem is bigger - it happens also in week view. Clicking next button calendar goes 2 weeks forward. Prevoius button works fine.

So the problem happens for months and weeks. Pagers at days and years views are working fine.

umberto.’s picture

We have this problem too, solution #2 solved the problem

TommyK’s picture

Comment #1 describes the issue correctly. All those months are skipped.

Comment #2 provides a workaround. It doesn't seem like a solution because one could expect empty months to be presented along with months that contain entries when viewing a calendar.

UPDATE: Tested with the current HEAD (as of this writing) of Views, Date, and Calendar.

zombree’s picture

Title: Pager skipping April » Pager skipping April, April, but also February, June, September, and November
Issue tags: +date-pager

After 2 months of stability, I updated some modules on my site and this issue reared its ugly head again.

I tried the solution in comment #2 and it did not work for me.

I managed to resolve it once more by updating my version of the Date module and applying the patch found here: https://www.drupal.org/node/2375235#comment-9855523

4x3’s picture

Also experiencing this issue. Looks like it is skipping months with less than 31 days.

Max1’s picture

Issue summary: View changes

I also ran in this issue.

By the way, in clean installation on simplytest.me the bug does not reproduce. I compare all options of the calendar view in my server and in clean installed server - they are about the same.

"Skip empty pages" from #2 will slow down server, it is not a solution.

Max1’s picture

Priority: Normal » Major
Jaypan’s picture

Not sure if it's related, but with the update to 7.35, the forward button stopped working altogether for me.

dscl’s picture

Status: Active » Closed (won't fix)

Hey guys,
I've ran into this issue, but after debugging it for a while I notice the pager is actually controlled by the Date module.

Looking into the Date module's issue queue I've found out that the same was reported there and a working patch was already provided.
I'm closing this one because of this and adding the Date's issue as a related issue. Please refer to there.

dscl’s picture

I didn't know I couldn't refer to other project's issues as related.

Here is the link: https://www.drupal.org/node/2375235

Jaypan’s picture

I also figured out the issue was with the Date module. The patch failed for me though, so I was not able to apply it. For the time being, I'm using Calendar 3.5 (current) with Date 2.7 (one back) and it's all working.

Max1’s picture

Max1’s picture