Doc #72453 [Asn->Csd]: Document the possibility to initialize a DateTimeZone object by offset only

From: Date: Mon, 05 Aug 2019 06:25:47 +0000
Subject: Doc #72453 [Asn->Csd]: Document the possibility to initialize a DateTimeZone object by offset only
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16855@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72453&edit=1 ID: 72453 Updated by: jbnahan@php.net Reported by: matthieux dot dekamen at gmail dot com Summary: Document the possibility to initialize a DateTimeZone object by offset only -Status: Assigned +Status: Closed Type: Documentation Problem Package: Date/time related PHP Version: Irrelevant Assigned To: derick Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2019-08-05 06:17:38] jbnahan@php.net The documentation is now update. ------------------------------------------------------------------------ [2016-06-20 06:24:51] matthieux dot dekamen at gmail dot com Description: ------------ It is possible to initialize a DateTimeZone object with offset only, however, it is not documented. According to the documentation, it even seems forbidden as it shows a restrictive list of allowed timezones: http://php.net/manual/en/datetimezone.construct.php#refsect1-datetimezone.construct-parameters It should definitely be possible to allow offsets only. Related: https://bugs.php.net/bug.php?id=45528 Check also: https://3v4l.org/RMc1J ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72453&edit=1

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