ID: 29809 Updated by: [EMAIL PROTECTED] Reported By: never_slept at yahoo dot com -Status: Open +Status: Bogus Bug Type: Date/time related Operating System: Suse 9.1 PHP Version: 5.0.1 New Comment:
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 Previous Comments: ------------------------------------------------------------------------ [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