Re: [PHP] change server time

2009-05-25 Thread Sumit Sharma
That's really a good bunch of information. Thanks, Sumit. On Mon, May 25, 2009 at 2:43 PM, Lester Caine wrote: > Sumit Sharma wrote: > >> 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 a

Re: [PHP] change server time

2009-05-25 Thread Lester Caine
Sumit Sharma wrote: 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 sta

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

Re: [PHP] change server time

2009-05-24 Thread Sumit Sharma
That's great but how to do this? On Mon, May 25, 2009 at 9:11 AM, Eddie Drapkin wrote: > If you want to change the server time ocmpletely and independent of PHP, > you're going to have to do it from the shell. > > > On Sun, May 24, 2009 at 11:36 PM, Sumit Sharma wrote: > >> Yes, I works on w

Re: [PHP] change server time

2009-05-24 Thread Eddie Drapkin
If you want to change the server time ocmpletely and independent of PHP, you're going to have to do it from the shell. On Sun, May 24, 2009 at 11:36 PM, Sumit Sharma wrote: > Yes, I works on windows as well well. Was looking for india time zone found > it as putenv("TZ=Asia/Calcutta");. Thanks a

Re: [PHP] change server time

2009-05-24 Thread Sumit Sharma
Yes, I works on windows as well well. Was looking for india time zone found it as putenv("TZ=Asia/Calcutta");. Thanks a lot, but this function does not change the server time permanently. Any Idea about any function which does so. Thanks, Sumit On Sun, May 24, 2009 at 12:33 PM, Michael

Re: [PHP] change server time

2009-05-24 Thread Michael A. Peters
Sumit Sharma wrote: Hi, Whenever I am using date('r') function It shows time in GMT instead of local time set on my machine. Do I need to configure the time separately. I am using WAMP server locally. Thanks, Sumit Not sure about windows - but putenv("TZ=America/Los_Angeles");