Skip to content

Commit c99e6d8

Browse files
committed
2 parents ef7fe06 + a72172d commit c99e6d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adminpages/reports/sales.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ function pmpro_getSales($period, $levels = NULL)
479479
elseif($period == "this year")
480480
$startdate = date_i18n("Y", current_time('timestamp')) . "-01-01";
481481
else
482-
$startdate = "";
482+
$startdate = date_i18n("Y-m-d", 0);
483483

484484
$gateway_environment = pmpro_getOption("gateway_environment");
485485

@@ -593,7 +593,7 @@ function pmpro_getRevenue($period, $levels = NULL)
593593
elseif($period == "this year")
594594
$startdate = date_i18n("Y", current_time('timestamp')) . "-01-01";
595595
else
596-
$startdate = "";
596+
$startdate = date_i18n("Y-m-d", 0);
597597

598598
// Convert from local to UTC.
599599
$startdate = get_gmt_from_date( $startdate );

0 commit comments

Comments
 (0)