Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Day minus one
nazwiz
Member

Posts: 15
Registered: 11/24/2003
Member Is Offline
posted on 12/4/2003 at 02:37 AM Reply With Quote
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?
View User's Profile View All Posts By User U2U Member
nik


Posts:
Registered: 1/1/1970
Member Is Offline
posted on 12/4/2003 at 10:41 AM Reply With Quote

You should write date instead of get_date in the line you've mentioned.
View User's Profile View All Posts By User U2U Member
nazwiz
Member

Posts: 15
Registered: 11/24/2003
Member Is Offline
posted on 12/4/2003 at 04:35 PM Reply With Quote
Many Thanks


This is the call that works correctly:

date ('d M, Y',mktime(0,0,0,$CLm,$CLd,$CLy))
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Free/Trial Script Download Free Download
Product Documentation Documentation
Documentation page
Change Log
Support Forum Support Forum
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004