#50155 [Opn->Csd]: Poorly defined Epoch
| From: | salathe@php.net | Date: | Thu, 12 Nov 2009 12:00:30 +0000 |
| Subject: | #50155 [Opn->Csd]: Poorly defined Epoch | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3096@lists.php.net to get a copy of this message | ||
ID: 50155
Updated by: salathe@php.net
Reported By: edwin dot h at clear dot net dot nz
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2009-11-12 11:58:13] svn@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&revision=290576
Log: Corrected definition of Unix Epoch. Fixes #50155
------------------------------------------------------------------------
[2009-11-12 07:45:05] edwin dot h at clear dot net dot nz
Description:
------------
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
---
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50155&edit=1