Forum Moderators: phranque

Message Too Old, No Replies

change apache timezone via htaccess?

change apache timezone via htaccess?

         

Giorgio79

8:04 am on Sep 10, 2006 (gmt 0)

10+ Year Member



Hello Everyone,

I am hosting in a different timezone, and while I managed to change the server's timezone to mine (via shell) phpinfo still shows the host's timezone.

Is there anyway I can change Apache timezone to mine via htaccess? This would be easier than modifying the php/mysql app.

Thank you,
Gyuri

coopster

12:26 pm on Sep 11, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Which version of PHP? PHP5 has a new setting.

PHP date() function throws E STRICT error [webmasterworld.com] (details in link)

Also, the PHP Date and Time Functions [php.net] manual page will get you going on the configuration directives and possibilities.

Giorgio79

8:54 am on Sep 12, 2006 (gmt 0)

10+ Year Member



Dear coopster,

Thank you very much for your kind reply.

Following your links I found the date.timezone stuff which I set to my capital
(first I set it to Europe/mycountry which failed, then I saw I need to put the capital :D)
I am very happy! :)

Have a nice day

Giorgio

coopster

12:48 pm on Sep 12, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I am happy to hear that, Giorgio. Welcome to WebmasterWorld!