title: TypeError: Cannot find function getHours in object 17
body: <p>I have a Google App Script that stopped working and throws the Error "TypeError: Cannot find function getHours in object 17.". Since we haven't made any changes in the code and I'm not too familiar with Google App Script/Javascript, I hope someone can point me to the right direction. </p>
  
  <p>The code is much longer than this but I'm giving an example of an appearance of the getHours function (I can provide the full code if needed):</p>
  
  <pre><code>if (action.indexOf("[") == -1 &amp;&amp; action != "") { // Check if there is some operation to take action
  
  var roomtype = row[1]; // Reading data from the table
  var desc = row[8];
  var date = row[2]; 
  var tstart = row[3]; 
  var tstop = row[4]; 
  var name = row[5]; 
  var company = row[9]; 
  
  var short_title = RoomShortcuts[0][roomtype] + " " + name + " (" + company + ")"; // Creating title of the Calendar entry
  if (action == "Tentative") { short_title = "PROV: " + short_title; }              // This is for Tentative events
  
  var year = date.getYear(); // Getting the date and time and transforming it for the calendar
  var month = date.getMonth();
  var day = date.getDate();    
  var startHour = tstart.getHours();
  var startMinute = tstart.getMinutes();
  var stopHour = tstop.getHours();
  var stopMinute = tstop.getMinutes();
  var startdate = new Date(year, month, day, startHour, startMinute);
  var stopdate = new Date(year, month, day, stopHour, stopMinute);
  
  if (roomtype == "Gallery") {
    var repeat = 2;
    cal_EventCalendar[0]['Gallery'] = CalendarApp.openByName("Hub SMR");
  } else {
    var repeat = 1;
  }
  </code></pre>
  
  <p>Thanks a lot!</p>