ID: 29809
User updated by: never_slept at yahoo dot com
Reported By: never_slept at yahoo dot com
Status: Bogus
Bug Type: Date/time related
Operating System: Suse 9.1
PHP Version: 5.0.1
New Comment:
Yes I read that bug report and although them sounded to potentially be
the same thing... my strtotime("now") does in fact spit out a different
value every second and that bug report makes no mention of using the
second argument for strtotime(). So please reconsider carefully if this
is really a duplicate. Seeing as you took all of a couple of minutes
last time.
Previous Comments:
------------------------------------------------------------------------
[2004-08-24 09:29:01] [EMAIL PROTECTED]
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same.
Thank you for your interest in PHP.
Duplicate of #29557
------------------------------------------------------------------------
[2004-08-24 09:24:00] never_slept at yahoo dot com
strtotime is loosing seconds and minutes and hours info when used with
its second argument. The example code should output the same integer
values - but it doesn't. Use getdate on the resulting values and you
find that hours, minutes and seconds got zero'd.
------------------------------------------------------------------------
[2004-08-24 09:21:32] never_slept at yahoo dot com
Description:
------------
strtotime is loosing seconds and minutes and hours info when used with
its second argument.
Reproduce code:
---------------
echo strtotime("+10 seconds", strtotime("2004/08/24 12:17:10"));
echo "<br>";
echo strtotime("2004-08-24 12:17:20");
echo "<br>";
echo "<pre>";
print_r(getdate(strtotime("+10 seconds", strtotime("2004/08/24
12:17:10"))));
print_r(getdate(strtotime("2004-08-24 12:17:20")));
echo "</pre>";
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29809&edit=1