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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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
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

Pull Requests

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 Nov 22 03:01:27 2024 UTC