php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #52363 timezone_name_from_abbr problem
Submitted: 2010-07-16 16:51 UTC Modified: 2010-07-19 12:14 UTC
From: rblon at fastmail dot fm Assigned: aharvey (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.3.2 OS:
Private report: No CVE-ID: None
 [2010-07-16 16:51 UTC] 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?



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-07-19 12:06 UTC] aharvey@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: aharvey
 [2010-07-19 12:06 UTC] 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-19 12:07 UTC] aharvey@php.net
-Type: Bug +Type: Documentation Problem
 [2010-07-19 12:13 UTC] 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:13 UTC] aharvey@php.net
-Status: Assigned +Status: Closed
 [2010-07-19 12:14 UTC] aharvey@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 01 19:01:30 2024 UTC