From:             bald at pf dot pl
Operating system: Windows XP
PHP version:      5.0.0
PHP Bug Type:     Date/time related
Bug description:  strtotime() returning wrong results

Description:
------------
strtotime() function gives me a strange results, diffrent in PHP 5 and PHP
4. 

Reproduce code:
---------------
<?php
  $date = 1090435469;
  echo date("d-m-Y H:i:s", $date) . '<br>'; // 21-07-2004 20:44:29
  echo date("d-m-Y H:i:s", strtotime("+1 minute", $date)); // 21-07-2004
00:01:00
?>

Expected result:
----------------
21-07-2004 20:44:29
21-07-2004 20:45:29

Actual result:
--------------
21-07-2004 20:44:29
21-07-2004 00:01:00

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

Reply via email to