Bug #52363 [Opn->Asn]: timezone_name_from_abbr problem
| From: | aharvey@php.net | Date: | Mon, 19 Jul 2010 10:06:45 +0000 |
| Subject: | Bug #52363 [Opn->Asn]: timezone_name_from_abbr problem | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-4707@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: Open
+Status: Assigned
Type: Bug
Package: Documentation problem
PHP Version: 5.3.2
-Assigned To:
+Assigned To: aharvey
New Comment:
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. :)
Previous Comments:
------------------------------------------------------------------------
[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