To reproduce:
1. Create a provider
2. Create repeating "In Office" and "Out of Office" events ending in 2039
3. There are now appointment slots available from now until 2039, however, when you click on "Find Available" in the new appointment dialog box it reports that there are no slots available. This is true no matter what day (from when you created the in office/out of office events) you search on.
To fix:
Change the repeat until date to a time before the UNIX apocalypse (sometime in 2038).
Additional details:
OpenEMR 3.1.0, XAMPP version
Windows 7