[FIX] Fix bug for duration, duration are computed according to if the event is an alll day or not