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
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: 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 13:01:28 2025 UTC