PHP Bugs  
php.net | support | documentation | report a bug | advanced search | search howto | statistics | login

go to bug id or search bugs for  

Bug #50155 Poorly defined Epoch
Submitted:12 Nov 2009 7:45am UTC Modified: 12 Nov 2009 12:00pm UTC
From:edwin dot h at clear dot net dot nz Assigned to:
Status:Closed Category:Documentation problem
Version:Irrelevant OS:Irrelevant
View/Vote Developer Edit Submission

Welcome! If you don't have a SVN 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.
SVN Username: SVN Password:
Quick Fix:
Status: Assign to:
Category:
Summary:
From: edwin dot h at clear dot net dot nz
New email:
Version: OS:
New/Additional Comment:

[12 Nov 2009 7:45am 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
---

[12 Nov 2009 11:58am 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
[12 Nov 2009 12:00pm 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. 

RSS feed | show source 

PHP Copyright © 2001-2009 The PHP Group
All rights reserved.
Last updated: Sat Nov 21 10:30:49 2009 UTC