fix: Error occurs on the console when the time range is not set.
Created by: tracer1023
What type of PR is this?
/kind bug
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes ##2470 (closed)
Special notes for reviewers:
Add a prompt when the start time or end time is not set
Does this PR introduced a user-facing change?
NONE