Doc #65747 [Csd->Wfx]: DateTime __construct error

From: Date: Fri, 30 Sep 2016 11:43:04 +0000
Subject: Doc #65747 [Csd->Wfx]: DateTime __construct error
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13969@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65747&edit=1 ID: 65747 Updated by: cmb@php.net Reported by: mwiseman at dogandtuba dot com Summary: DateTime __construct error -Status: Closed +Status: Wont fix Type: Documentation Problem Package: Date/time related Operating System: Windows PHP Version: Irrelevant Assigned To: cmb Block user comment: N Private report: N New Comment: It has been decided that it's better not to document the timezone abbreviations due to their volatility. Previous Comments: ------------------------------------------------------------------------ [2016-06-18 17:24:26] cmb@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've learned that those military timezones are only a small subset of allowed timezone abbreviations (see timezone_abbreviations_list()). These are all documented now. ------------------------------------------------------------------------ [2016-06-18 17:21:51] cmb@php.net Automatic comment from SVN on behalf of cmb Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=339390 Log: Fix #65747: DateTime __construct error ------------------------------------------------------------------------ [2016-06-18 17:19:18] cmb@php.net Automatic comment from SVN on behalf of cmb Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=339389 Log: Enhance timezone list generator to also emit timezone abbreviations (see #65747) ------------------------------------------------------------------------ [2016-06-17 22:25:53] cmb@php.net For reference, requinix' script from above with its output: <https://3v4l.org/1sqnT>. ------------------------------------------------------------------------ [2013-12-18 22:59:40] vascowhite at gmail dot com That doesn't explain why DateTimeZone::construct() doesn't recognise a valid time zone like 'z', nor does it explain why $dateTime = new \DateTime(null, 'z'); raises an exception. If 'z' is a valid tz, it should not. There is a bug in there somewhere. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=65747 -- Edit this bug report at https://bugs.php.net/bug.php?id=65747&edit=1

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