From 9ac277156dfad8430740c3e3a860e62aaaf03d31 Mon Sep 17 00:00:00 2001 From: Daniel Camargo Date: Fri, 13 Jun 2014 15:01:12 -0300 Subject: [PATCH] settlement - removed debug stuff --- include/controllers/default/cockpit2/api/settlement/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/controllers/default/cockpit2/api/settlement/index.php b/include/controllers/default/cockpit2/api/settlement/index.php index 20691867b..c11175309 100644 --- a/include/controllers/default/cockpit2/api/settlement/index.php +++ b/include/controllers/default/cockpit2/api/settlement/index.php @@ -190,9 +190,9 @@ class Controller_api_settlement extends Crunchbutton_Controller_RestAccount { private function _range(){ $now = new DateTime( 'now', new DateTimeZone( c::config()->timezone ) ); - $range = [ 'end' => '2014,05,10' /*$now->format( 'Y,m,d' ) */ ]; + $range = [ 'end' => $now->format( 'Y,m,d' ) ]; $now->modify( '-1 week' ); - $range[ 'start' ] = '2014,05,04' /*$now->format( 'Y,m,d' )*/; + $range[ 'start' ] = $now->format( 'Y,m,d' ); echo json_encode( $range ); }