Error in Date.php/TimeZone.php
| From: | Jan Jonas | Date: | Wed, 04 Aug 2004 21:42:13 +0000 |
| Subject: | Error in Date.php/TimeZone.php | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-32441@lists.php.net to get a copy of this message | ||
i think i found an bug in your Date-Class or in the Timezone-Class.
This is my PHP-Code:
echo date("Y-m-d H:i:s")."<br>";
$date =& new Date();
$date2 =& new Date();
$date->isPast($date);
echo date("Y-m-d H:i:s")."<br>";
And the ouptut is:
2004-07-20 16:47:52
2004-07-20 14:47:52
I think here is something wrong, because calling the function isPast()
changes the output of the date-function.
Regards
Jan