php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68681 Bug with strtotime
Submitted: 2014-12-29 07:39 UTC Modified: 2015-01-11 04:22 UTC
From: nospamit at mail dot ru Assigned:
Status: No Feedback Package: Date/time related
PHP Version: 5.4.36 OS: debian
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2014-12-29 07:39 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-12-29 08:22 UTC] kalle@php.net
-Status: Open +Status: Feedback
 [2014-12-29 08:22 UTC] 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 08:23 UTC] kalle@php.net
-Package: *Calendar problems +Package: Date/time related
 [2015-01-11 04:22 UTC] php-bugs at lists dot php dot net
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.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Aug 01 15:01:24 2021 UTC