Corrected hour representation in tests.

This commit is contained in:
Peter Fabian 2018-09-21 10:37:39 +02:00
parent 880d99986f
commit 8f2af2e6d8
1 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ class WC_Admin_Tests_Reports_Revenue_Stats extends WC_Unit_Test_Case {
),
'intervals' => array(
array(
'interval' => date( 'Y-m-d H', $order->get_date_created()->getTimestamp() ),
'interval' => date( 'Y-m-d G', $order->get_date_created()->getTimestamp() ),
'date_start' => $start_time,
'date_start_gmt' => $start_time,
'date_end' => $end_time,
@ -102,7 +102,7 @@ class WC_Admin_Tests_Reports_Revenue_Stats extends WC_Unit_Test_Case {
),
'intervals' => array(
array(
'interval' => date( 'Y-m-d H', $order->get_date_created()->getTimestamp() ),
'interval' => date( 'Y-m-d G', $order->get_date_created()->getTimestamp() ),
'date_start' => $start_time,
'date_start_gmt' => $start_time,
'date_end' => $end_time,