We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a518011 + 91d6560 commit 12df1e2Copy full SHA for 12df1e2
classes/class-swsales-reports.php
@@ -145,9 +145,9 @@ public static function show_report( $sitewide_sale ) {
145
// Build an array with each day of sale as a key to store revenue data in.
146
$date_array_all = array();
147
$period = new \DatePeriod(
148
- new \DateTime( $sitewide_sale->get_start_date() ),
+ new \DateTime( $sitewide_sale->get_start_date( 'Y-m-d' ) ),
149
new \DateInterval('P1D'),
150
- new \DateTime( $sitewide_sale->get_end_date() . ' + 1 day' )
+ new \DateTime( $sitewide_sale->get_end_date( 'Y-m-d' ) . ' + 1 day' )
151
);
152
foreach ($period as $key => $value) {
153
$date_array_all[ $value->format('Y-m-d') ] = 0.0;
0 commit comments