Re: [PHP] how to get the local time

[email protected] (Ashley Sheridan)
Newsgroups php.general
Message-ID <1268683810.2892.108.camel@localhost>
On Tue, 2010-03-16 at 02:10 +0600, saeed ahmed wrote:

> hi friends,
> 
> I'm trying to set local time in my php script. I was trying date and time
> function but its always show the server time not local time. i need help on
> this problem. how can i set the local time. i need sweden time zone
> -----
> Regards
> Saeed Ahmed
> http://saeed05.wordpress.com
> -----


Do you mean local time as in the clients computer time? If so, as far as
I know you can't get that with PHP. What you would have to do is grab it
with JavaScript or something, and then pass that across to your server
script.

Thanks,
Ash
http://www.ashleysheridan.co.uk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.