add time limitation when getting events