Can anyone tell me why the following code returns 0 instead of 3600 seconds?

<?php
$gmttime = gmmktime(1,0,0,1,1,1970);
echo "gmttime  = $gmttime<br>\n";
?>

However, using mktime() for the same date does produce the correct output,
which for my timezone (CST) is 25200 seconds. Furthermore, running this on a
Linux machine with PHP4 produces the correct result for both cases.

I'm using the php4.0.5 release from www.php4win.de along with an Apache
server on Win2K. I was also seeing this bug in a previous php4 stable
release and thought it had been fixed. Perhaps not...

-david




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to