Hi, What I mean is my windows time is set to local time but when I use any date function in PHP it shows time in GMT on web browser and to change this I have to use putenv("TZ=asia/calcutta"); Thus: 1 There is no problem with Windows time its according to IST. 2 Problem start with PHP, which displays GMT time by default. 3 To solve this I was advised to change the OS time which is already changed. Now I am not aware how the php date functions picking GMT time and from where? On Mon, May 25, 2009 at 11:01 AM, kranthi <kranthi117@xxxxxxxxx> wrote: > what do you mean by "..does not change the server time permanently..." > > as far as i can understand you want your wamp server to take the time > specified by your operating sys. as a mater of fact it is doing that. > but it is not taking the timezone specified by your operating system. > > http://us2.php.net/date_default_timezone_get > > to set the env variable globally > 1. right click on my computer > 2. go to properties. > 3. go to advanced tab. > 4. click on environment variables button > > but i believe date.timezone php ini option is best for you > > PS: i dont use windows any more(not since an year) and the above is > from my memory. >