A tweak for bug #8365.  It now queries the timesheet records for the correct date.