Improved previous commit. We now use the start date instead of the end date.

maint-2.0.2
Ludovic Marcotte 2012-09-19 11:46:01 -04:00
parent 3a8226c110
commit 7154588b24
1 changed files with 1 additions and 1 deletions

View File

@ -744,7 +744,7 @@ _userStateInEvent (NSArray *event)
// We add 5 mins to the end date of an event if the end date
// is equal or smaller than the event's start date.
if (eventEnd <= currentStart)
computedEventEnd += (5*60);
computedEventEnd = currentStart + (5*60);
eventBlock = [self _eventBlockWithStart: currentStart
end: computedEventEnd