Doc #72453 [NEW]: Document the possibility to initialize a DateTimeZone object by offset only
| From: | matthieux dot dekamen at gmail dot com | Date: | Mon, 20 Jun 2016 06:24:56 +0000 |
| Subject: | Doc #72453 [NEW]: Document the possibility to initialize a DateTimeZone object by offset only | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-13558@lists.php.net to get a copy of this message | ||
From: matthieux dot dekamen at gmail dot com
Operating system:
PHP version: Irrelevant
Package: Date/time related
Bug Type: Documentation Problem
Bug description:Document the possibility to initialize a DateTimeZone object by offset only
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 bug report at https://bugs.php.net/bug.php?id=72453&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72453&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72453&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72453&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=72453&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=72453&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=72453&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=72453&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=72453&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=72453&r=support
Expected behavior: https://bugs.php.net/fix.php?id=72453&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=72453&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=72453&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=72453&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72453&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=72453&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=72453&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=72453&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72453&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=72453&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=72453&r=mysqlcfg