Re: Re: change server time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2009-05-25 at 03:54 +0000, oorza2k5@xxxxxxxxx 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 <sumitphp5@xxxxxxxxx> wrote:
> > That's great but how to do this?
> 
> 
> 
> 
> 
> > On Mon, May 25, 2009 at 9:11 AM, Eddie Drapkin oorza2k5@xxxxxxxxx> 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 sumitphp5@xxxxxxxxx> wrote:
> 
> 
> > 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 A. Peters mpeters@xxxxxxx>  
> > wrote:
> 
> 
> 
> > > 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");
> 
> > >
> 
> > > in your script should work (change the timezone to whatever you want
> 
> > > locally).
> 
> > >
> 
> > > You should be able to set the TZ variable globally in your php.ini file.
> 
> > >
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
If it's Windows, then you can change it from the control panel. If it's
Linux, then you won't need the GUI, you can set it with the date
command. There is more info on how to set the exact date or adjust
individual parts of the date by using the date manual (man date).


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux