Library PHP Tek 2026 Taming Time in PHP: Best Practices and Gotchas
Taming Time in PHP: Best Practices and Gotchas

Log in to watch this talk

You need to be logged in to access this video. If you don't have an account, purchase a virtual pass for the latest php[tek] conference to get access to the full video library.

Taming Time in PHP: Best Practices and Gotchas

Scott Keck-Warren Scott Keck-Warren PHP Tek 2026 Beginner Standard (50 minutes)

Time is one of the hardest problems in software, even if you're not working across time zones, formats, and legacy systems. In this talk, you’ll learn how to manage time effectively in PHP web applications, including how to handle daylight saving transitions, properly use `DateTimeImmutable`, and avoid pitfalls in date math. Whether you're maintaining a legacy system or building greenfield, this session will equip you with the tools and patterns to avoid time-related bugs and improve code reliability.