gmmktime() woes
| From: | David G. | Date: | Thu, 15 Mar 2001 15:58:41 +0000 |
| Subject: | gmmktime() woes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-44046@lists.php.net to get a copy of this message | ||
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