Re: how to get the local time

From: Date: Mon, 15 Mar 2010 21:16:33 +0000
Subject: Re: how to get the local time
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-302873@lists.php.net to get a copy of this message
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" <saeed.sas@gmail.com> wrote in message news:b10025e1003151310j483caed1mef9ec76874a53f26@mail.gmail.com... > 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

« previous php.general (#302873) next »