upgrade to 0.13, now Calendar doesn't know about some months
upgrade to 0.13, now Calendar doesn't know about some months
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.
Re: upgrade to 0.13, now Calendar doesn't know about some months
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.
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:
to:Code: Select all
$month_name = strftime('%b', mktime(12,0,0,$i+1));
That should take care of it.Code: Select all
$month_name = strftime('%b', mktime(12,0,0,$i+1,1));