powertowin
Junior Member
Posts: 4
Registered: 10/15/2003
Location: Canada
Member Is Offline
|
| posted on 1/1/2004 at 05:24 PM |
|
|
January 2004 doesn't show on PHP Calendar
I cannot see my January 2004 Calendar. Is there a way to solve this?
I love PHP Calendar but it's becoming hard to manage the problems...
My Calendars Page is at:
http://www.carismachurch.com/index.php?section=home&subc=calendar&lang=eng
|
|
|
eagledancing
Junior Member
Posts: 4
Registered: 11/18/2003
Member Is Offline
|
| posted on 1/1/2004 at 05:56 PM |
|
|
Year 2004 for January
This has been a problem in previous releases and also in this one. In 1.4 the correction is applied to the control panel and the demo.
When you follow the instructions to include your calendar on a webpage, it is showing Dec 2003 and the next January 2003 then February 2004.
You can click on the "Next Year" button and get the January 2004 that displays the proper events.
Interestingly enough, the todays events do not have this problem. The event display works fine.
So, seems we need one more fix to the January 2004 calendar display issue.
Will appreciate hearing about the fix.
Thanks
|
|
|
nazwiz
Member
Posts: 15
Registered: 11/24/2003
Member Is Offline
|
| posted on 1/2/2004 at 12:32 AM |
|
|
Year Roll Over Problem
Your calendar shows January 2002. Mine was showing January 2003. It looks like another problem surfaced with the "get_date" function. I
did the following change in the code in the show_h function from calendar.php, and it seems to work:
change from:
$y or $y = get_date('Y', mktime(0, 0, 0, $m, $day, date('Y')));
to:
$y or $y = date('Y', mktime(0, 0, 0, $m, $day, date('Y')));
I know what you mean about the problems. I have asked users to do testing, so this kind of thing is embarassing.
|
|
|
eagledancing
Junior Member
Posts: 4
Registered: 11/18/2003
Member Is Offline
|
| posted on 1/2/2004 at 02:00 PM |
|
|
The fix for change of year display
Thank you for the before and after. I was able to correct that one spot and it works beautifully!
LOL, well, we know that when we create things, there are going to be little bumps along the way that we have to polish out.
Now, one other situation. The year is fine however, the Date is off in the calendar preview...
The 1 of January now is on Wednesday instead of Thursday. ( I am using us eastern timezone... however, any of the time zones seem to be off...)
Thanks again...
|
|
|
nazwiz
Member
Posts: 15
Registered: 11/24/2003
Member Is Offline
|
| posted on 1/2/2004 at 07:39 PM |
|
|
Year Rollover
Thanks for letting us know that the fix worked for you. Eagledancing. There are two functions, one for the horizontal calendar and one for vertical.
Since I only have a horizontal calendar, I changed that first. You should look at the function for the vertical calendar: show_v, and apply the same
change.
|
|
|
eagledancing
Junior Member
Posts: 4
Registered: 11/18/2003
Member Is Offline
|
| posted on 1/3/2004 at 12:59 PM |
|
|
Year roll over and day off
Thanks for letting me know about also changing the vertical show.
In the demo calendars that are supplied with the code, the vertical display shows the days properly, however, the horizonal view is off one day.
(the 3rd of January should be on a Saturday and it is on the Veritcal view however, on the Horizonal it is showing the 4th is on Sat.) ...
Of course, I changed the day of week display to compensate, however, you folks may wish to look at that..
Thanks again...
|
|
|