How to change timezone in php website

Hello Everyone,

Sometime we need to change timezone in website to apply some condition on time base .

If it is Indian website then we can set time zone to India as per below.

To change time zone for website you need to add two line code in site, it is as below:

$timezone=’Asia/Calcutta’;

Date_default_timezone_set($timezone);

 

By writing above line your website time is as per calcutta time.

Some timezone  as below:

-> Asia/Calcutta

->America/New_York

->Australia/North

->Australia/Perth

 

hope  it helps…

Coreway Solution