PDA

View Full Version : weird problem


silicon
12-01-2003, 04:03 AM
I have a problem where the months would show right, until it just hits december and it stays on november (i don't know why). I tried reinstalling the script (with new database) and still isn't fixing it.

I have:
print "test: $mo $yr";
in my escal.php and it comes as:
test: 11 2003
so it thinks the month is still november, but my system clock(which is the server's clock) is Time: 1:30:26 AM - Pacific Standard Time Date: Monday, December 1st, 2003 (12/1/2003)

Edit: sooo... I was messing around and changed:
if (!$mo) $mo = date("m",$tnum*86400);
to:
if (!$mo) $mo = date("m",$tnum*86403);
for the hell of it (I don't really know what I'm doing(that much))
and it does change to december 2003; like it should, messing around much changing the months, I changed to the beginning of the year (january) and the calendar says January 2002 instead of 2003 when my I set my system time to January 2003 but when I set my time to Feburary everything starts to work right again. I set my time to January 2004, it shows January 2003 on the calendar, So i set it to Feburary 2004 and it shows Feburary 2004, I see a pattern, don't you? I hope you can figure it out; I am just showing you what I am doing.
maybe it's just me being weird; I am kind of tired while I am writing this...

Edit2: Papa has a fix for anyone having this problem. and btw thanks for creating one of the best calendar and ever improving scripts out there. :P

tifosi
12-01-2003, 07:09 AM
what have you got the gmt variable set to in escap.php??

Brian
12-01-2003, 09:26 AM
Just sent you a PM.