Board Logo

Day minus one
nazwiz - 12/4/2003 at 02:37 AM

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 - 12/4/2003 at 10:41 AM

You should write date instead of get_date in the line you've mentioned.

nazwiz - 12/4/2003 at 04:35 PM

This is the call that works correctly:

date ('d M, Y',mktime(0,0,0,$CLm,$CLd,$CLy))

Back to forum: