You know changing the timezone in PHP is very simple task

If  our hosting server is in different timezone than our PHP version whichever  you have do not show the correct time

By changing  in setting in PHP,  i.e  (date.timezone)  we can easily solved the problem .

For example:

date.timezone=”Indian/chagos”

In this example, we assume that we set the timezone for our PHP  to date.timezone=”Indian/chagos”.  to change timezone  simply replace the  ”Indian/chagos”  with desired timezone.

I think it will be  helpful for you.

Advertisement

1 Response so far »

  1. 1

    Rocky said,

    Seems helpful to me, quite a rookie I am!


Comment RSS · TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.