lib/event: retrieve the event start/end time instead of timestamp