From:             never_slept at yahoo dot com
Operating system: Suse 9.1
PHP version:      5.0.1
PHP Bug Type:     Date/time related
Bug description:  strtotime is loosing seconds and minutes and hours info

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 bug report at http://bugs.php.net/?id=29809&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=29809&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29809&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29809&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=29809&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=29809&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=29809&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=29809&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=29809&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=29809&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=29809&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=29809&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=29809&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=29809&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=29809&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=29809&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=29809&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=29809&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=29809&r=float

Reply via email to