CMS: How to change timezone in php website

CMS

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

More resources like CMS
GET
100%

satisfaction
or
Get Your Money
Back

Just for you

pdf_icon_case

Download our WP checklist below and review your Wordpress site's performance today for free

DOWNLOAD

interested?

Let's Discuss Now