Fixed the check for future times.