Fix valid time ... but still having trouble add_event.