|  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
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:
Solve the problem:
44 + 31 = ?
Subscribe to this entry?

 [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-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 24 01:01:28 2024 UTC