upgrade to 0.13, now Calendar doesn't know about some months

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
ds236

upgrade to 0.13, now Calendar doesn't know about some months

Post by ds236 »

After upgrading to 0.13 on one of my sites, the CMSMS Calendar component won't let me add events in some months. The drop-down is missing about half of the months. I'd sure appreciate some pointers to help track this down.
jeffunk
Forum Members
Forum Members
Posts: 32
Joined: Thu Mar 16, 2006 3:17 am

Re: upgrade to 0.13, now Calendar doesn't know about some months

Post by jeffunk »

I had this problem once, In my case the problem was that if the default date was the 31st day of the month then only the months with 31 days were shown.  Is that the case for you?

If that is your problem as well, then I would suggest updating to the newest version of Calendar as I think  it is fixed in the newest version, if it isn't then you can edit the source code according to these Notes from the Bug Fix.
To fix this problem, change line 556 from:

Code: Select all

$month_name = strftime('%b', mktime(12,0,0,$i+1));
to:

Code: Select all

$month_name = strftime('%b', mktime(12,0,0,$i+1,1));
That should take care of it.
Locked

Return to “[locked] Installation, Setup and Upgrade”