Fix time bug in Agenda implementation