From:             danik at mit dot edu
Operating system: centos4
PHP version:      5.2CVS-2008-04-14 (snap)
PHP Bug Type:     Feature/Change Request
Bug description:  date_timezone_set function feature request

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 bug report at http://bugs.php.net/?id=44726&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44726&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44726&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44726&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44726&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=44726&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44726&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44726&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44726&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44726&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44726&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=44726&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=44726&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44726&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44726&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=44726&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44726&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44726&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44726&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44726&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44726&r=mysqlcfg

Reply via email to