add missing method to set ending of time