php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #34386 date_default_timezone_set should provide a list of valid timezones
Submitted: 2005-09-06 06:05 UTC Modified: 2005-09-06 07:49 UTC
From: david at tulloh dot id dot au Assigned:
Status: Wont fix Package: Documentation problem
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: david at tulloh dot id dot au
New email:
PHP Version: OS:

 

 [2005-09-06 06:05 UTC] david at tulloh dot id dot au
Description:
------------
date_default_timezone_set (and the rest of php documentation) do not provide a listing of valid PHP timezones.

A list, or link to a list, would be very useful in choosing the correct timezone rather than guess and check as is currently required (or read the source code).

Additionally there should be some clarification on conflicting timezones, such as EST.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-06 07:49 UTC] derick@php.net
Actually, there is code that returns a list of supported timezones. We can not really document this as this list gets extended once in a while. This new function (timezone_identifiers_list) is however not enabled yet, but will be in PHP 5.1.1 and higher. For now you can check on this url which ones are supported:
http://viewcvs.php.net/viewcvs.cgi/php-src/ext/date/lib/timezonedb.h?rev=1.4.2.2&content-type=text/vnd.viewcvs-markup
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 07:01:32 2024 UTC