• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

capturing timezone from a browser???

 
deep venu
Ranch Hand
Posts: 56
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my Web-based application i need to capture the user's local time/ timezone so that i can have the GMT - offset and there by have an appropriate entry in the database.
Any pointers please???
thank U
~Dee
 
Mike Titus
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use JavaScript to get the current date and time in the client's browser, and send that value back to the server using a GET or POST. This isn't complete, but it will give you the idea:
<BODY onLoad="form.currentDate = new Date()">
<FORM NAME="form" METHOD="post">
<INPUT NAME="currentDate" TYPE="hidden">
</FORM>
</BODY>

[This message has been edited by Mike Titus (edited October 01, 2001).]
 
deep venu
Ranch Hand
Posts: 56
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanx buddy lemme try it out and get back to u..:-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic