• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Browser zone

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Helo!
Is there any way to ask what timezone the client (=browser) is?
------------------
Antti Barck
It Solutions Consultant -- NSD Oy
Sun Certified Programmer for the Java� 2 Platform
 
James Swan
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
you could use the JavaScript Date object (see http://developer.netscape.com/docs/manuals/js/client/jsref/date.htm)
You would most likely need to parse the results of the toString() method to find the timezone, and check the results on different browsers, for example when I tried the following code in IE, my time zone was PDT, and in Netscape it was "Pacific Daylight Time".

Hope this helps,
James.
[This message has been edited by james swan (edited August 27, 2001).]
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Helo Jim!
Of course JavaScript runs on client side, thx How did I not figure that out myself, instead I was hunting some other parts of the request. This is good thing but need some thinking for incorporation. Thx again
------------------
Antti Barck
It Solutions Consultant -- NSD Oy
Sun Certified Programmer for the Java� 2 Platform
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic