Closed (fixed)
Project:
Ubercart
Version:
7.x-3.0
Component:
Reports
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Feb 2012 at 14:20 UTC
Updated:
24 Feb 2012 at 15:00 UTC
The daily average and projected totals are calculated using the numeric month, rather than day of month. New code would look like:
function uc_reports_sales_summary() {
$order_statuses = uc_reports_order_statuses();
$date_day_of_month = date('j');
$date_month = date('n');
$month_start = mktime(0, 0, 0, $date_month, 1);
$month_end = mktime(0, 0, 0, $date_month + 1, 1) - 1;
$today_start = mktime(0, 0, 0);
$today_end = mktime(23, 59, 59);
Comments
Comment #1
longwaveCommitted, thanks for the report.
Comment #2
liliplanet commentedThank you age3141592, works perfectly!