Even if I don't know exactly why , apparently 'time' is not always a Date. So if I don't write this line, the unit test of "modify-event" fail because "time is not a Date" (or something like that)