Bug #3225: gmmktime gives wrong result
| From: | iljitsch at pine dot nl | Date: | Sun, 16 Jan 2000 20:56:16 +0000 |
| Subject: | Bug #3225: gmmktime gives wrong result | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14687@lists.php.net to get a copy of this message | ||
From: iljitsch@pine.nl
Operating system: Solaris
PHP version: 3.0.12
PHP Bug Type: Misbehaving function
Bug description: gmmktime gives wrong result
$ts = gmmktime(0, 0, 0, 1, 1, 1970);
echo "Timestamp " . gmdate("U (Y-M-d H:i:s)", $ts) . " GMT<br>";
echo "Timestamp " . date("U (Y-M-d H:i:s)", $ts) . " MET
+0100<br>";
Unless I misunderstand, the above script should come up with
a unix timestamp of 0. In stead, the result is -7200.
In in Den Haag, timezone MET, that's GMT+1.