# Bug #63615 DateTime::modify() ignores timezone [PATCH]

- Thread: https://externals.io/message/64167
- Original archive: https://news-web.php.net/php.internals/64167
- Started by Paul Taulborg on 2012-12-05T22:32:36+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #64167 — Paul Taulborg — 2012-12-05T22:32:36+00:00

URL: https://externals.io/message/64167#64167

I looked into this, and the modify function was not setting the
timezone information back to the parent dateobj. I have created a
patch that does this, IF the timezone information is set on the new
modified timestamp. It is attached to the bug itself, and here as
well.

This is, of course, assuming that `date_modify()` should actually modify
the timezone information. If this is intended functionality, then this
patch will fix it. If not, the bug should be closed as a no fix.

Thanks
