php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #72453 Document the possibility to initialize a DateTimeZone object by offset only
Submitted: 2016-06-20 06:24 UTC Modified: 2019-08-05 06:25 UTC
From: matthieux dot dekamen at gmail dot com Assigned: derick (profile)
Status: Closed Package: Date/time related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: matthieux dot dekamen at gmail dot com
New email:
PHP Version: OS:

 

 [2016-06-20 06:24 UTC] 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



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-06-20 11:55 UTC] googleguy@php.net
-Assigned To: +Assigned To: derick
 [2019-08-05 06:17 UTC] jbnahan@php.net
The documentation is now update.
 [2019-08-05 06:25 UTC] jbnahan@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 20:01:29 2024 UTC