|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-04-15 00:15 UTC] scottmac@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 04:00:02 2025 UTC |
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