Fix generated event time, add events generation to allGenerate function