7day should start from midnight, not current time

Fixes #15870
This commit is contained in:
Mike Jolley 2017-06-30 11:34:07 +01:00
parent 5d20b2f646
commit 472b983498
1 changed files with 1 additions and 1 deletions

View File

@ -558,7 +558,7 @@ class WC_Admin_Report {
break;
case '7day' :
$this->start_date = strtotime( '-6 days', current_time( 'timestamp' ) );
$this->start_date = strtotime( '-6 days', strtotime( 'midnight', current_time( 'timestamp' ) ) );
$this->end_date = strtotime( 'midnight', current_time( 'timestamp' ) );
$this->chart_groupby = 'day';
break;