Re: how to get the local time

[email protected] ("Gary")
Newsgroups php.general
Message-ID <[email protected]>
You should be able to get the local time for Sweden by adding

<?php
  date_default_timezone_set('Stockholm/Sweden');
 echo date('l F jS, o');?>

However, I dont know about getting the local time of someone visiting from a 
different time zone.

gary


"saeed ahmed" <[email protected]> wrote in message 
news:[email protected]...
> 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
> -----
>
>
>
> __________ Information from ESET Smart Security, version of virus 
> signature database 4946 (20100315) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
> 



__________ Information from ESET Smart Security, version of virus signature database 4946 (20100315) __________

The message was checked by ESET Smart Security.

http://www.eset.com
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.