diff --git a/calendar/resources/content/eventDialog.js b/calendar/resources/content/eventDialog.js index 2a3e4365b1cd..b2cb283d0519 100644 --- a/calendar/resources/content/eventDialog.js +++ b/calendar/resources/content/eventDialog.js @@ -586,7 +586,10 @@ function checkSetRecurTime() var recur = getFieldValue( "repeat-checkbox", "checked" ); dump(recurForever+ " and "+ recur+ "\n"); - var state = (recurEndDate.getTime() < endDate.getTime() && !recurForever && recur) ; + var state = ( ( recurEndDate.getFullYear() < endDate.getFullYear() || + recurEndDate.getMonth() != endDate.getMonth() || + recurEndDate.getDate() != endDate.getDate() ) + && !recurForever && recur) ; setRecurError(state); return(!state ); }