CMS: How to change timezone in php website

Varun
1939 Days Ago

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

INDIA
Call : +91-9601077582
Email : info@corewaysolution.com
© 2019, Corewaysolution. All Rights Reserved. Privacy Policy | Refund Policy