# Date timezone performance/cleanup [PATCH]

- Thread: https://externals.io/message/64693
- Original archive: https://news-web.php.net/php.internals/64693
- Started by Paul Taulborg on 2013-01-08T16:09:22+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

---

## #64693 — Paul Taulborg — 2013-01-08T16:09:22+00:00

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

https://bugs.php.net/bug.php?id=63941

Per discussion with Nuno Lopes and Christopher Jones, I have created
another patch to simplify guess_timezone() in ext/date/php_date.c

Internals summary: removes the newly patched in int value that caches
whether a timezone was previously checked or not, as well as reduces
complexity by only using timezone for the stored (and checked)
timezone value. default_timezone is still used locally for `ini_set()`
calls, but is copied to timezone when checked as valid. Does give a
slight performance increase due to less compiled ops.

If anyone has any feedback, let me know.

Thanks in advance!
