cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Go to solution
Highlighted
New

How to change timezone

How to change timezone of the server and Mysql?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Solution

Re: How to change timezone

Use this following code in the php file where you are about to record the timestamp.

 

<?php
date_default_timezone_set('America/Toronto');
?>

View solution in original post

9 REPLIES 9
Highlighted
Employee
Employee

Re: How to change timezone

Hello @WSK01!

 

Thank you for your post. To help the community better answer your query, can you provide more information? Which type of hosting you have, etc.

 

Heather - GoDaddy | Community Moderator
24/7 support available at x.co/247support
Highlighted
New

Re: How to change timezone

Hello, @Heather
It is Deluxe Linux Hosting with cPanel.
I would like to know how to change the timezone of my server and MySQL database.

Highlighted

Re: How to change timezone

I have this same problem. Can you help me?

Highlighted

Re: How to change timezone

HELP! is it possible. 

Highlighted
New

Re: How to change timezone

In your .htaccess file you can add a command to set the server time zone.

For example: SetEnv TZ America/Chicago

Highlighted

Re: How to change timezone

I have the same issue. As godaddy person instructed, I put the SetEnv TZ America/Los_Angeles into '.htaccess  but the time didn't change.


Is there anyone who solve this issue?

 

My web hosting is deluxe Linux hosting, shared server.

Please advise me.

 

Thank you.

 

Highlighted

Re: How to change timezone

yes same problem here bro .i want to change indian time zone

simplecool wrote:

I have the same issue. As godaddy person instructed, I put the SetEnv TZ America/Los_Angeles into '.htaccess  but the time didn't change.


Is there anyone who solve this issue?

 

My web hosting is deluxe Linux hosting, shared server.

Please advise me.

 

Thank you.

 


 

Highlighted

Re: How to change timezone

Hi, did anyone ever get an answer for this after? The suggested answer doesnt seem to work. I think godaddy should be allowing users to do this alot more easily with a guarentee the code actually works when the code is put in the .htaccess file. 

 

My question put another way;;;  when i use DateTime stamp (  i use phpmyadmin with auto input not a client side statement)    i want the local time to be GMT or UCT ..not Los angeles time....   iam using a shared hosting package . 

 

ball bis bessing baround biz briving be botty....  bbbbbabonday.....

Highlighted
Solution

Re: How to change timezone

Use this following code in the php file where you are about to record the timestamp.

 

<?php
date_default_timezone_set('America/Toronto');
?>

View solution in original post