php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76760 date() function lists 28.10 two times
Submitted: 2018-08-17 14:13 UTC Modified: 2018-08-17 14:24 UTC
From: armagan at multiphone dot de Assigned: cmb (profile)
Status: Not a bug Package: Date/time related
PHP Version: 5.6.37 OS: Linux
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: armagan at multiphone dot de
New email:
PHP Version: OS:

 

 [2018-08-17 14:13 UTC] armagan at multiphone dot de
Description:
------------
The date() function returns the date YYYY-10-28 two times if listed. See example.

Test script:
---------------
for($i=strtotime("2018-07-01"); $i<strtotime("2018-12-01"); $i+=86400)
          {
            $list[] = date('d.m.Y', $i);
          }
          dump($list); //look for 2018-10-28


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-08-17 14:24 UTC] cmb@php.net
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: cmb
 [2018-08-17 14:24 UTC] cmb@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

That's a DST issue.  Oct, 28th has 25 hours.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 05:01:27 2024 UTC