nazwiz
Member
Posts: 15
Registered: 11/24/2003
Member Is Offline
|
| posted on 12/4/2003 at 02:37 AM |
|
|
Day minus one
in the function show_event($CLd, $CLm, $CLy, $G_C = '') in calendar.php, I'm trying to put the date on the event heading.
The following line gives me date minus one, the same way it was displayed in the events editor before the fix.
$head = str_replace('%date', get_date ('d M, Y',mktime(0,0,0,$CLm,$CLd,$CLy)), $head);
echo $head;
Is there a way to fix this, to give me the current date?
|
|
|
nik
Posts:
Registered: 1/1/1970
Member Is Offline
|
| posted on 12/4/2003 at 10:41 AM |
|
|
You should write date instead of get_date in the line you've mentioned.
|
|
|
nazwiz
Member
Posts: 15
Registered: 11/24/2003
Member Is Offline
|
| posted on 12/4/2003 at 04:35 PM |
|
|
Many Thanks
This is the call that works correctly:
date ('d M, Y',mktime(0,0,0,$CLm,$CLd,$CLy))
|
|
|
|