Bug #73314 [Ver->Csd]: Documentation on createFromFormat does not match with date_default_timezone_get

From: Date: Fri, 14 Oct 2016 09:07:38 +0000
Subject: Bug #73314 [Ver->Csd]: Documentation on createFromFormat does not match with date_default_timezone_get
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14016@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73314&edit=1 ID: 73314 Updated by: cmb@php.net Reported by: flip101 at gmail dot com Summary: Documentation on createFromFormat does not match with date_default_timezone_get -Status: Verified +Status: Closed Type: Bug Package: Documentation problem PHP Version: 5.6.26 Assigned To: cmb Block user comment: N Private report: N 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. Previous Comments: ------------------------------------------------------------------------ [2016-10-14 09:06:56] cmb@php.net Automatic comment from SVN on behalf of cmb Revision: http://svn.php.net/viewvc/?view=revision&revision=340470 Log: Fix #73314: Documentation on createFromFormat does not match with date_default_timezone_get $timezone's default is to complex to be expressed as initializer, so we omit it. ------------------------------------------------------------------------ [2016-10-13 13:47:04] flip101 at gmail dot com Description: ------------ https://secure.php.net/manual/en/class.datetime.php public static DateTime createFromFormat ( string $format , string $time [, DateTimeZone $timezone = date_default_timezone_get() ] ) 3rd argument of createFromFormat expects a DateTimeZone object. https://secure.php.net/manual/en/function.date-default-timezone-get.php return a string ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73314&edit=1

« previous php.doc.bugs (#14016) next »