#28774 [Opn->Bgs]: strtotime returning different results

From: Date: Mon, 14 Jun 2004 15:21:17 +0000
Subject: #28774 [Opn->Bgs]: strtotime returning different results
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-60889@lists.php.net to get a copy of this message
ID: 28774 Updated by: derick@php.net Reported By: jonathancrossett at hotmail dot com -Status: Open +Status: Bogus Bug Type: Date/time related Operating System: Linux PHP Version: 5.0.0RC3 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. Dup of http://bugs.php.net/28599 Previous Comments: ------------------------------------------------------------------------ [2004-06-14 17:18:02] jonathancrossett at hotmail dot com Description: ------------ In PHP5-RC2 and RC3 when I try to add time to a time stamp with strtotime I receive improper results. Reproduce code: --------------- <? for ($i = 0; $i < 4; $i++) { $mytime = strtotime ($i); echo "<br> $mytime - " . strtotime("+1 minutes", $mytime); } ?> Expected result: ---------------- 1086566400 - 1086566460 1086570000 - 1086570060 1086573600 - 1086573660 1086577200 - 1086577260 Actual result: -------------- 1086566400 - 1086566460 1086570000 - 1086566460 1086573600 - 1086566460 1086577200 - 1086566460 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28774&edit=1

« previous php.bugs (#60889) next »