diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2011-01-16 14:39:35 +0300 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2011-01-16 14:39:35 +0300 |
commit | 37b78bb39f19823984cd07b4467b8ea67d68c95c (patch) | |
tree | dd5813ab9ad7b3c001561a98e1dd6132497e4046 /core/Period.php | |
parent | d5621a6b5a32e8c1693ffaaf0b97cde9ddd8a918 (diff) |
Fixes #1888
Note: Year Period is not toStringable - does it still solve your use case?
git-svn-id: http://dev.piwik.org/svn/trunk@3755 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Period.php')
-rw-r--r-- | core/Period.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Period.php b/core/Period.php index 1d7b9d397f..ca97fd902c 100644 --- a/core/Period.php +++ b/core/Period.php @@ -186,7 +186,7 @@ abstract class Piwik_Period $this->subperiods[] = $date; } - public function toString() + public function toString($format = "Y-m-d") { if(!$this->subperiodsProcessed) { @@ -195,7 +195,7 @@ abstract class Piwik_Period $dateString = array(); foreach($this->subperiods as $period) { - $dateString[] = $period->toString(); + $dateString[] = $period->toString($format); } return $dateString; } |