logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache, mod_proxy_http.so sets _ENV["TZ"] variable
Author
bentogoa



Joined: 09 Feb 2007
Posts: 66
Location: GOA

PostPosted: Sat 04 Oct '08 7:33    Post subject: Apache, mod_proxy_http.so sets _ENV["TZ"] variable Reply with quote

When i enable mod_proxy_http.so it sets env variable to GMT.

This causes php to show all dates / times in GMT.
This causes windows update to fail with clock sync error.

How can i change or remove this variable
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Sat 04 Oct '08 21:40    Post subject: Reply with quote

You can set the time zone in PHP it self date_default_timezone_set()

Manual link for time zone
Back to top
bentogoa



Joined: 09 Feb 2007
Posts: 66
Location: GOA

PostPosted: Sun 05 Oct '08 13:13    Post subject: Reply with quote

I have done that. date_default_timezone_set() is set to Asia/Calcutta.

But this when this variable is set it makes no difference. it shows all time's / Dates in GMT timezone
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Mon 06 Oct '08 14:23    Post subject: Reply with quote

Maybe you can use setenv

For more details see the docs http://httpd.apache.org/docs/2.2/mod/mod_env.html
Back to top
bentogoa



Joined: 09 Feb 2007
Posts: 66
Location: GOA

PostPosted: Tue 07 Oct '08 8:13    Post subject: Reply with quote

James Blond wrote:
Maybe you can use setenv

For more details see the docs http://httpd.apache.org/docs/2.2/mod/mod_env.html


Thanks Setting an env TZ to IST worked.
Back to top


Reply to topic   Topic: Apache, mod_proxy_http.so sets _ENV["TZ"] variable View previous topic :: View next topic
Post new topic   Forum Index -> Apache