php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77820 strtotime function errror
Submitted: 2019-03-29 06:50 UTC Modified: 2019-03-29 06:52 UTC
From: yogesh at innovins dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 7.3.3 OS: Windows 10
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: yogesh at innovins dot com
New email:
PHP Version: OS:

 

 [2019-03-29 06:50 UTC] yogesh at innovins dot com
Description:
------------
---
From manual page: https://php.net/function.strtotime
---
Please check below function. If you use this function on 29th/30th March, The result we are getting is March 2019. Maybe this bug happens only because the Feb month has only 28 days. You should fix this bug.

Test script:
---------------
 echo date("F Y", strtotime("-1 month" )); 

Expected result:
----------------
February 2019


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Mar 11 07:01:30 2025 UTC