Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Digital Lifestyle
Web Design and Hosting
Jquery Clock
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="vansmith" data-source="post: 1251070" data-attributes="member: 71075"><p>Take a look <a href="http://www.onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/" target="_blank">here</a> and <a href="http://www.techrepublic.com/article/convert-the-local-time-to-another-time-zone-with-this-javascript/6016329" target="_blank">here</a>. My suggestion would be to set the clock according to their time zone and then using that, figure out how far their TZ is from yours and set the clock accordingly.</p><p></p><p>In other words, let's say I'm in the eastern time zone and you're in the pacific time zone (three hours behind the eastern one). I view the page and the JS figures out that I'm in the eastern time zone. The script then calculates how far back/ahead I am from yours and figures out that I'm three hours ahead. The script then creates a second hour hand that is three hours behind (this would be your time).</p><p></p><p>I'm not a JS expert so that may sound like a daft solution but it's a start.</p></blockquote><p></p>
[QUOTE="vansmith, post: 1251070, member: 71075"] Take a look [URL="http://www.onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/"]here[/URL] and [URL="http://www.techrepublic.com/article/convert-the-local-time-to-another-time-zone-with-this-javascript/6016329"]here[/URL]. My suggestion would be to set the clock according to their time zone and then using that, figure out how far their TZ is from yours and set the clock accordingly. In other words, let's say I'm in the eastern time zone and you're in the pacific time zone (three hours behind the eastern one). I view the page and the JS figures out that I'm in the eastern time zone. The script then calculates how far back/ahead I am from yours and figures out that I'm three hours ahead. The script then creates a second hour hand that is three hours behind (this would be your time). I'm not a JS expert so that may sound like a daft solution but it's a start. [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
Digital Lifestyle
Web Design and Hosting
Jquery Clock
Top