ID: 44726
Updated by: [EMAIL PROTECTED]
Reported By: danik at mit dot edu
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: centos4
PHP Version: 5.2CVS-2008-04-14 (snap)
New Comment:
DST is automatically taken into account by the date functions, that's
why you define the location and not just a particular offset.
Previous Comments:
------------------------------------------------------------------------
[2008-04-14 19:40:12] danik at mit dot edu
Description:
------------
Dear Derick and Date Developers,
First of all, thank you adding timezone and dst support to PHP. I'm so
glad that I don't have to write this class myself and deal with
maintaining the backend.
I would like to request automatic dst handling for the DateTime
object.
Currently, there is no automatic way to apply a timezone dst offset to
the DateTime object. I'm in the process of writing code that iterates
through the timezone transitions array, similar to the sample code from
your 2007 talk.
I would love to refactor my code to use a call like this:
void date_timezone_set(
DateTime $object,
DateTimeZone $timezone,
[, int $apply_dst_offset]
)
Similarly, the date_create function could also take the same optional
argument.
Please let me know if this realistic.
Thank you for your time,
Dan
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44726&edit=1