title: javascript adding minutes in a loop
body: <p>Can't figure this out, from 9:00 to 10:00 everything's correct, but then it all goes haywire. after 10:00 it jumps to 11:15 and then to 12:30</p>
  
  <p>I am simply adding minutes to a date/time to increment an array in 15 minute intervals, is it that I can only add a maximum of 60 minutes ??</p>
  
  <pre><code>function pad(val,max) { 
          var str = val.toString(); 
          return str.length &lt; max ? pad("0" + str, max) : str;
  }
  
  function cboHrs(){
      var now = new Date(); 
      now.setHours(9);
      var hrs = [];
      for (var i=1;i&lt;36;i++){
          var hr = {}; 
          now.setMinutes(i*15);
          hr.txt = pad(now.getHours(),2) +':'+pad(now.getMinutes(),2);
          hr.val = hr.txt; 
          hrs.push(hr);
          }
      return hrs;
  }
  console.log(cboHrs());
  </code></pre>