|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61564 -1 month problem
Submitted: 2012-03-30 13:36 UTC Modified: 2012-03-30 18:41 UTC
From: coolbig at bk dot ru Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.3.10 OS: windows 7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: coolbig at bk dot ru
New email:
PHP Version: OS:


 [2012-03-30 13:36 UTC] coolbig at bk dot ru
Strtotime() show bad result!
At my pc: 2012/03/30 16:26 (Kiev)


Php show bad result:
echo date('d-m-Y, H:i', strtotime('-1 month'));
// 30-01-2012, 16:26

MySQL show good result:
select CURRENT_TIMESTAMP - interval 1 month
// 2012-02-29 16:26:51


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-30 18:41 UTC]
This is not a bug. Feb.30 doesn't exist.

More details here:
 [2012-03-30 18:41 UTC]
-Status: Open +Status: Not a bug
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 30 21:01:33 2024 UTC