#29310 [Opn->Bgs]: strtotime() returning wrong results

From: Date: Wed, 21 Jul 2004 20:59:47 +0000
Subject: #29310 [Opn->Bgs]: strtotime() returning wrong results
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-63287@lists.php.net to get a copy of this message
ID: 29310 Updated by: derick@php.net Reported By: bald at pf dot pl -Status: Open +Status: Bogus Bug Type: Date/time related Operating System: Windows XP PHP Version: 5.0.0 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. Already reported, please search the bug system first before reporting a bug next time. Previous Comments: ------------------------------------------------------------------------ [2004-07-21 21:38:39] bald at pf dot pl 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 this bug report at http://bugs.php.net/?id=29310&edit=1

« previous php.bugs (#63287) next »