Fixed date functions in qa_reports.