Javascript get timezone code code example
Example: javascript convert timezone name to abbreviation
// Doing this:
<script src="moment.js"></script>
<script src="moment-timezone.js"></script>
<script src="moment-timezone-data.js"></script>
<script>
moment().tz("America/Los_Angeles").zoneAbbr();
</script>
// Returns:
'PDT' // Timezone's abbreviation