Fix boundary check for updated time