Phil's patch to sreport to correct End time requests in the future

If a user runs sreport and specifies a time period that stretches into
the future, this patch sets the end of the period to the current time.