Wissensbasis

How can I modify the PHP timezone setting for my website?

Modified on:Mon, Feb 27, 2017 07:11 am UTC

timezone php php timezone

Your server's Global time configuration cannot be changed, but you can use the PHP function date_default_timezone_set to set the timezone for your website. Here's an example code that sets and checks the currently set timezone: