Merge pull request #15890 from woocommerce/fix/15870
7day should start from midnight, not current time
This commit is contained in:
commit
3fc26b7e24
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue