Fix whole-day calendar detection test, and expand it to handle a few more cases too

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30453 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Nick Burch
2011-09-13 08:50:10 +00:00
parent c68e748438
commit a22263ccd4
2 changed files with 30 additions and 5 deletions

View File

@@ -303,7 +303,7 @@ public class CalendarEntryDTO implements CalendarEntry, Serializable
startLocal.setTime(entry.getStart());
endLocal.setTime(entry.getEnd());
// Check for midnight, first in UTC then again in Local time
// Check for midnight, first in UTC then again in Server Local Time
Calendar[] starts = new Calendar[] { startUTC, startLocal };
Calendar[] ends = new Calendar[] { endUTC, endLocal };
for(int i=0; i<starts.length; i++)