|  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: 2016-06-20 11:55 UTC
From: matthieux dot dekamen at gmail dot com Assigned: derick (profile)
Status: Assigned Package: Date/time related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
46 + 9 = ?
Subscribe to this entry?

 [2016-06-20 06:24 UTC] matthieux dot dekamen at gmail dot com
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:

It should definitely be possible to allow offsets only.
Check also:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-06-20 11:55 UTC]
-Assigned To: +Assigned To: derick
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun May 26 07:01:26 2019 UTC