time overflow check; ref #2337