rem: setTimeout( "update_date()", milliSecsTillTomorrow ); 
add:    var udCallback = { notify: function(timer) { update_date(); } };  var timer = Components.classes["@mozilla.org/timer;1"] .createInstance(Components.interfaces.nsITimer); timer.initWithCallback(udCallback, milliSecsTillTomorrow, timer.TYPE_ONE_SHOT); 
context: function update_date(){   // get the current time   var now = new Date();      var tomorrow = new Date( now.getFullYear(), now.getMonth(), ( now.getDate() + 1 ) );      var milliSecsTillTomorrow = tomorrow.getTime() - now.getTime();      gCalendarWindow.currentView.hiliteTodaysDate();   refreshEventTree();   setTimeout( "update_date()", milliSecsTillTomorrow ); }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/484f14faa6248fc3ca198d819b1ef6c3eb0264ab/calendar.js/clean/calendar/resources/content/calendar.js