Doc #52363 [Csd]: timezone_name_from_abbr problem
| From: | aharvey@php.net | Date: | Mon, 19 Jul 2010 10:14:04 +0000 |
| Subject: | Doc #52363 [Csd]: timezone_name_from_abbr problem | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-4709@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52363&edit=1
ID: 52363
Updated by: aharvey@php.net
Reported by: rblon at fastmail dot fm
Summary: timezone_name_from_abbr problem
Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: 5.3.2
Assigned To: aharvey
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2010-07-19 12:13:33] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=301391
Log: Fix doc bug #52363 (timezone_name_from_abbr problem) by adding more
explanation
of the $isdst parameter.
------------------------------------------------------------------------
[2010-07-19 12:06:44] aharvey@php.net
I'll make the description of the $isdst parameter clearer.
The documentation is correct about being able to get the time zone from
$gmtOffset and $isdst. Of course, whether it actually returns the
_right_ time zone is a whole 'nother problem. :)
------------------------------------------------------------------------
[2010-07-16 16:51:43] rblon at fastmail dot fm
Description:
------------
The timezone_name_from_abbr function suggests that you can get the
timezone from
$gmtOffset and $isdst (passing an empty $abbr string).
I don't think that is possible, as there is no 1 to 1 relation.
Correct me if I am wrong, but if $isdst = 0, it might mean that the
timezone
currently has no daylight saving or that the timezone has never daylight
saving.
How can the function differentiate between the two timezones?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52363&edit=1