Merge pull request #15890 from woocommerce/fix/15870

7day should start from midnight, not current time
This commit is contained in:
Claudiu Lodromanean 2017-06-30 09:19:45 -07:00 committed by GitHub
commit 3fc26b7e24
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;