|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #50155 Poorly defined Epoch
Submitted: 2009-11-12 07:45 UTC Modified: 2009-11-12 12:00 UTC
From: edwin dot h at clear dot net dot nz Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
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.
Block user comment
Status: Assign to:
Bug Type:
From: edwin dot h at clear dot net dot nz
New email:
PHP Version: OS:


 [2009-11-12 07:45 UTC] edwin dot h at clear dot net dot nz
In the documentation for DateTime::createFromFormat, the Unix Epoch is 
defined (incorrectly) as 1970-01-01 00:00:00 whereas it is in fact 1970-
01-01 00:00:00 GMT.

Note that the former is only correct at GMT and BST during winter.  It 
is invalid for all other timezones.

Reproduce code:
From manual page: datetime.createfromformat#Parameters


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-12 11:58 UTC]
Automatic comment from SVN on behalf of salathe
Log: Corrected definition of Unix Epoch. Fixes #50155
 [2009-11-12 12:00 UTC]
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

I have added the UTC timezone to that definition. 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Apr 15 06:01:24 2021 UTC