Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: Apache, mod_proxy_http.so sets _ENV["TZ"] variable |
|
Author |
|
bentogoa
Joined: 09 Feb 2007 Posts: 66 Location: GOA
|
Posted: Sat 04 Oct '08 7:33 Post subject: Apache, mod_proxy_http.so sets _ENV["TZ"] variable |
|
|
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
|
Posted: Sat 04 Oct '08 21:40 Post subject: |
|
|
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
|
Posted: Sun 05 Oct '08 13:13 Post subject: |
|
|
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
|
|
Back to top |
|
bentogoa
Joined: 09 Feb 2007 Posts: 66 Location: GOA
|
Posted: Tue 07 Oct '08 8:13 Post subject: |
|
|
Thanks Setting an env TZ to IST worked. |
|
Back to top |
|
|
|
|
|
|