Bug #68681 [Opn->Fbk]: Bug with strtotime

From: Date: Mon, 29 Dec 2014 08:22:31 +0000
Subject: Bug #68681 [Opn->Fbk]: Bug with strtotime
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189301@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68681&edit=1 ID: 68681 Updated by: kalle@php.net Reported by: nospamit at mail dot ru Summary: Bug with strtotime -Status: Open +Status: Feedback Type: Bug Package: *Calendar problems Operating System: debian PHP Version: 5.4.36 Block user comment: N Private report: N New Comment: Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2014-12-29 07:39:57] nospamit at mail dot ru Description: ------------ $date = '28.12.2014'; // Input date echo date("Y-m-d H:i:s", strtotime("+1 day -1 seconds", strtotime($date))) // 28.12.2014 23:59:59 date("Y-m-d H:i:s", strtotime("+1 day -1 seconds +1 day", strtotime($date))); // 29.12.2014 23:59:59 Test script: --------------- <?php $date = '28.12.2014'; // Input date echo date("Y-m-d H:i:s", strtotime("+1 day -1 seconds", strtotime($date))) // 28.12.2014 23:59:59 date("Y-m-d H:i:s", strtotime("+1 day -1 seconds +1 day", strtotime($date))); // 29.12.2014 23:59:59 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68681&edit=1

« previous php.bugs (#189301) next »