rem: var startDate = Math.floor(document.getElementById( "start-date-picker" ).value.getTime()/86400000); var endDate = Math.floor(document.getElementById( "end-date-picker" ).value.getTime()/86400000); 
add: var startDate = document.getElementById( "start-date-picker" ).value; var endDate = document.getElementById( "end-date-picker" ).value; 
context: function checkEndDate(){   // Bad to get into floats.   var startDate = Math.floor(document.getElementById( "start-date-picker" ).value.getTime()/86400000);    var endDate = Math.floor(document.getElementById( "end-date-picker" ).value.getTime()/86400000);       if( startDate.getFullYear() == endDate.getFullYear() &&       startDate.getMonth() == endDate.getMonth() &&       startDate.getDay() == endDate.getDay() )      return( 0 );   else if ( endDate < startDate)      return -1;   else if (endDate > startDate)      return 1;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/f0aa9194ba3806d2bf1ad363ab558d7a9a547892/eventDialog.js/buggy/calendar/resources/content/eventDialog.js