2005-07-20 Helge Hess <helge.hess@opengroupware.org>
+ * UIxAppointmentEditor.js: properly use getDate() instead of getDay()
+ for date comparison (#1478)
+
* UIxAppointmentEditor.js: properly validate startdate/enddate so that
startdate is always before the enddate (#1478)
if (date1.getMonth() < date2.getMonth()) return date1;
if (date1.getMonth() > date2.getMonth()) return date2;
// same month
- if (date1.getDay() < date2.getDay()) return date1;
- if (date1.getDay() > date2.getDay()) return date2;
+ if (date1.getDate() < date2.getDate()) return date1;
+ if (date1.getDate() > date2.getDate()) return date2;
// same day
return null;
}