What are common pitfalls to avoid when trying to include date and time information in PHP scripts?

One common pitfall to avoid when including date and time information in PHP scripts is not setting the correct timezone, which can lead to inaccurate date and time calculations. To solve this issue, always set the timezone using the `date_default_timezone_set()` function at the beginning of your script.

// Set the timezone to your desired location
date_default_timezone_set('America/New_York');

// Now you can safely work with date and time functions
$currentDateTime = date('Y-m-d H:i:s');
echo $currentDateTime;