From 7aa82a182977307c46761eca8c94d0608a84bebe Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 6 Mar 2019 17:25:35 +0000 Subject: [PATCH] Use day, not time, in status widget for caching --- includes/admin/class-wc-admin-dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/class-wc-admin-dashboard.php b/includes/admin/class-wc-admin-dashboard.php index 772ef2b1eec..9664194b3aa 100644 --- a/includes/admin/class-wc-admin-dashboard.php +++ b/includes/admin/class-wc-admin-dashboard.php @@ -91,7 +91,7 @@ if ( ! class_exists( 'WC_Admin_Dashboard', false ) ) : $sales_by_date = new WC_Report_Sales_By_Date(); $sales_by_date->start_date = strtotime( date( 'Y-m-01', current_time( 'timestamp' ) ) ); - $sales_by_date->end_date = current_time( 'timestamp' ); + $sales_by_date->end_date = strtotime( date( 'Y-m-d', current_time( 'timestamp' ) ) ); $sales_by_date->chart_groupby = 'day'; $sales_by_date->group_by_query = 'YEAR(posts.post_date), MONTH(posts.post_date), DAY(posts.post_date)';