Q: Building javascript "Order by for same day shipping" countdown timer I've got an online store in Magento and I want to add a countdown timer so that if a customer orders by 5pm Eastern Standard time their product will ship the same day. I need it to be freely usable in the CMS and individual product descriptions. I need it only in Javascript. I have a working solution below. I just need it to only countdown against Eastern Standard Time. We are based in EST but have customers in different timezones. 
Here is the code so far:
if (document.getElementById('countdownTimer')) {
  pad = function(n, len) { // leading 0's
    var s = n.toString();
    return (new Array( (len - s.length + 1) ).join('0')) + s;
  };

  var timerRunning = setInterval(
    function countDown() {
      var now = new Date();
      if ( (now.getDay() >= 1) && (now.getDay() <= 5) ) { // Monday to Friday only
        var target = 17; // 15:00hrs is the cut-off point
        if (now.getHours() < target) { // don't do anything if we're past the cut-off point
          var hrs = (target - 1) - now.getHours();
          if (hrs < 0) hrs = 0;
          var mins = 59 - now.getMinutes();
          if (mins < 0) mins = 0;
          var secs = 59 - now.getSeconds();
          if (secs < 0) secs = 0;
          var str = pad(hrs, 2) + ':' + pad(mins, 2) + '.<small>' + pad(secs, 2) + '</small>';
          document.getElementById('countdownTimer').innerHTML = str;

        }
      }
    }, 1000
  );
}

