We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ef7fe06 + a72172d commit c99e6d8Copy full SHA for c99e6d8
adminpages/reports/sales.php
@@ -479,7 +479,7 @@ function pmpro_getSales($period, $levels = NULL)
479
elseif($period == "this year")
480
$startdate = date_i18n("Y", current_time('timestamp')) . "-01-01";
481
else
482
- $startdate = "";
+ $startdate = date_i18n("Y-m-d", 0);
483
484
$gateway_environment = pmpro_getOption("gateway_environment");
485
@@ -593,7 +593,7 @@ function pmpro_getRevenue($period, $levels = NULL)
593
594
595
596
597
598
// Convert from local to UTC.
599
$startdate = get_gmt_from_date( $startdate );
0 commit comments