I have a script that reads the users timezone and displays a time according to users. How do I display the timezone abbreviation?
I have a gaming site, and on posts we write "We'll be playing live at 7:00". Users from around the world read our blog, and want to watch live. I have the following script that is supposed to read the users timezone, and displays the time according to where the user lives.
<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Localtime</title>
  </head>
  <body>
    We'll be playing live at <span class="localtime">7:00PM EDT</span>
    <script src="//cdnjs.cloudflare.com/ajax/libs/datejs/1.0/date.min.js"></script>
    <script
      var els = document.getElementsByClassName('localtime');
      for (var i = 0, l = els.length; i < l; i++)
        els[i].innerHTML = 
          Date.parse(els[i].innerHTML).toLocaleString();
    </script>
  </body>
</html>
How do I display a user-specific timezone abbreviation beside the time, so users know that the time is based on their timezone?
                        
bigeasy's Timezone seems to be a solution that gives you the time zone abbreviation, although as implied by @matt-johnson, abbreviations are not standardized.
Example of trying out Timezone with Node.js (followed the walk-through):
Moment.js has an entry point "hook" for time zone abbreviations, but as far as I know there is not a library that takes advantage of this yet.