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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
18 - 2 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 16:01:27 2024 UTC