Re: Re: [PHP] change server time

2009-05-25 Thread Sumit Sharma
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 dis

Re: Re: [PHP] change server time

2009-05-25 Thread Ashley Sheridan
On Mon, 2009-05-25 at 03:54 +, oorza...@gmail.com wrote: > In windows? I have no idea. I use linux for my server stacks. You'll have > to ask Dr. Google! I'd expect it's just like with normal windows, in the > date properties in the control panel. > > On May 24, 2009 11:44pm, Sumit Sharma

Re: Re: [PHP] change server time

2009-05-24 Thread kranthi
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.n

Re: Re: [PHP] change server time

2009-05-24 Thread Sumit Sharma
In my windows I have already selected the local time and its working fine for window but by default WAMP server is picking GMT time so I have to use putenv() function to change it for that page where I am using date function. It seems there is some misunderstanding between the server and OS. On

Re: Re: [PHP] change server time

2009-05-24 Thread oorza2k5
In windows? I have no idea. I use linux for my server stacks. You'll have to ask Dr. Google! I'd expect it's just like with normal windows, in the date properties in the control panel. On May 24, 2009 11:44pm, Sumit Sharma wrote: That's great but how to do this? On Mon, May 25, 2009