Bug #73314 [Opn->Ver]: Documentation on createFromFormat does not match with date_default_timezone_get
| From: | cmb@php.net | Date: | Thu, 13 Oct 2016 17:41:16 +0000 |
| Subject: | Bug #73314 [Opn->Ver]: 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-14015@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: Open
+Status: Verified
Type: Bug
Package: Documentation problem
PHP Version: 5.6.26
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[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