Are there any best practices for handling time zones in PHP scripts to ensure accurate time display?

When working with time zones in PHP scripts, it is important to set the correct time zone to ensure accurate time display. One best practice is to set the default time zone using the `date_default_timezone_set()` function at the beginning of your script. This will ensure that all date and time functions in your script use the specified time zone.

// Set the default time zone to UTC
date_default_timezone_set('UTC');

// Display the current date and time
echo date('Y-m-d H:i:s');