v0.11: getAll() fix for 28days february month!
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user