UTC inside the site
I am working on a site that will only be accessible via an intranet, but is a widespread website in Australia.
The point is that I was asked to examine the UTC site and wondered how I can show the clock or determine what time zone the site is in, and possibly display the clock on the main page indicating the time in Australia the user is using the site.
Would love some kind of generic jQuery type, Javascript, that will work out the correct takt times when the user is in Australia.
I have looked at http://randomibis.com/coolclock/ but from his views I need to specify the correct GMTOffset.
Could this value be determined in some way or is it something the user will have to specify?
Thank.
source to share
GMT offset of this client is available in the browser through the Date class :
var today = new Date();
var offset = -(today.getTimezoneOffset()/60);
Via http://www.24hourapps.com/2009/03/javascript-gmtutc-timezone-offset.html
source to share