Clock

Just wanted to write down a quick little JavaScript clock I made that converts to the user's time zone.  Since we have offices all over the world and the date time fields keep track of time in UTC it is important for users to know what time zone they are currently logged into.  I have placed this clock in the navbar at the top of the page next to the user to let them know what the current time is for their settings.  If they need to change it they can do so by clicking on it and changing their user profile.  Here is the code and feel free to fork this project at GitHub.$(document).ready(function() { //Get user office for UTC offset var office = $("[name='office']").val(); startTime(office); }); function startTime(office){ //Extra functionality for Date to calculate DST Date.prototype.stdTimezoneOffset = function() { var jan = new Date(this.getFullYear(), 0, 1); var jul = new Date(this.getFullYear(), 6, 1); return Math.max(jan.getTimezoneOffs...