Re: output Today's date
| From: | Barry | Date: | Mon, 06 Mar 2006 12:01:24 +0000 |
| Subject: | Re: output Today's date | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-231504@lists.php.net to get a copy of this message | ||
gustav@varupiraten.se wrote:
I am not quite sure but is in the HTTP GET header or the headers following then not the timezone included? I am talking about the Headers the Browser sends. Greets Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)Hi there! Yes, Javascript may have a such function, BUT think of the reliability... It's not sure, that user has the Javascript-functionality turned on, what happens then? Best regards Gustav Wiberg The IP to location is the best way.On Sat, Mar 04, 2006 at 07:01:55PM -0700, Paul Goepfert wrote:Hi, Javascripts' Date object has a getTimezoneOffset() method, which returns the difference between local time and universal time in minutes. Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpHi all, ls there anyway I can set the date to the timezone of the clients timezone? For example, if a person opens the web page at 3/6 12:01 EST and another person opens the same page at 3/5 10:01 MST I would like the date to be the above days on the client computers. I know everyone knows this but the way I described this the two people accessed the webpage at the same time but I want thecorrect date forthe client computer to be outputted.There are some tools that you can detect where the person is located and and you would be able to use the timezone from that information. One site I found from a quick google search: http://www.ip2location.com/ The cheapest and simpliest method would be to use some javascript to detect the timezone. Or let the user specify which one he wants to use.