php.net |  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:
MUST BE VALID
Solve the problem:
13 + 29 = ?
Subscribe to this entry?

 
 [2009-11-12 07:45 UTC] 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
---



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-12 11:58 UTC] 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 12:00 UTC] salathe@php.net
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: Fri Apr 26 12:01:30 2024 UTC