diff --git a/phpLinkyAPI.php b/phpLinkyAPI.php index a353399..2282d8c 100644 --- a/phpLinkyAPI.php +++ b/phpLinkyAPI.php @@ -8,7 +8,7 @@ class Linky{ - public $_version = '0.1'; + public $_version = '0.11'; public function getData_perhour($date) { @@ -147,7 +147,7 @@ class Linky{ //____Get per day $var = clone $today; - $fromMonth = $var->sub(new DateInterval('P1M')); + $fromMonth = $var->sub(new DateInterval('P30D')); $fromMonth = $fromMonth->format('d/m/Y'); $this->getData_perday($fromMonth, $yesterday); @@ -325,4 +325,4 @@ class Linky{ //Linky end } -?> \ No newline at end of file +?>