past time check implemented in schedule api