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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC