How to adjust PHP Time Zone to EGYPT Times

To make your PHP scripts use the correct time for Egypt, set the default time zone in your code.

date_default_timezone_set('Africa/Cairo');

You can also use this line in the configuration files of many PHP scripts, or set it once for the whole account in php.ini:

date.timezone = "Africa/Cairo"

For more PHP time zones, see the PHP time zones list. Enjoy!

Ready to open your workspace?

Start with a domain today and add more as you grow.