Bug #68681 [Fbk->NoF]: Bug with strtotime
| From: | php-bugs at lists dot php dot net | Date: | Sun, 11 Jan 2015 04:22:19 +0000 |
| Subject: | Bug #68681 [Fbk->NoF]: Bug with strtotime | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-189885@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: php-bugs@lists.php.net
Reported by: nospamit at mail dot ru
Summary: Bug with strtotime
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Date/time related
Operating System: debian
PHP Version: 5.4.36
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2014-12-29 08:22:30] kalle@php.net
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.
------------------------------------------------------------------------
[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