#48045 [Opn->Csd]: DateTimeZone::getOffset() description problem
| From: | rquadling@php.net | Date: | Wed, 22 Apr 2009 13:34:40 +0000 |
| Subject: | #48045 [Opn->Csd]: DateTimeZone::getOffset() description problem | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-2141@lists.php.net to get a copy of this message | ||
ID: 48045
Updated by: rquadling@php.net
Reported By: gebi_hu at yahoo dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
PHP Version: Irrelevant
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:
------------------------------------------------------------------------
[2009-04-22 12:57:58] gebi_hu at yahoo dot com
Description:
------------
The description says the offset to GMT is calculated using the timezone
set in the DateTime object used. Actually it is calculated using the
timezone of the DateTimeZone object itself. This is correctly explained
in the example's comment.
Also the Example #1 says it is an example of the procedural style
call:
---> Example #1 timezone_offset_get() examples
but it is actually an example of the class style call:
---> $timeOffset = $dateTimeZoneJapan->getOffset($dateTimeTaipei);
Reproduce code:
---------------
---
From manual page: datetimezone.getoffset
---
Expected result:
----------------
"... The GMT offset is calculated with the timezone information
contained in the DateTimeZone object being used."
Actual result:
--------------
"... The GMT offset is calculated with the timezone information
contained in the DateTime object being used."
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48045&edit=1