Use Javascript to display a local time on your website

If you're announcing an event on your website, you can use the Javascript snippet below and it will automatically convert the time to your users' local timezone. Note that it currently does not handle times across the daylight saving boundary (in these cases, it assumes daylight saving will not change between now and your event).

To use the code below, just copy/paste the Javascript snippet on the left, replace "4:45 PM" and "Chicago" with the time and timezone of your event, and then put it on your webpage.
The event is starting at
<script src=
"http://www.thetimezoneconverter.com/js/ttzc.js"
></script>
<script>
new TTZC.Widget({
  version:'inline',
  t:'4:45 PM',
  tz:'Chicago'
}).display();
</script> your time.
The event is starting at your time.


© Jonathan Berger