diff options
author | robocoder <anthon.pang@gmail.com> | 2011-01-04 21:25:08 +0300 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2011-01-04 21:25:08 +0300 |
commit | 3468bced16297749cea015f7e7b41d0fc8e5bdeb (patch) | |
tree | 18210b22b7ab3525f9c957c459a22c30922ff8e2 /core/Date.php | |
parent | 68ce2cb2b6a167fdbbd0a88f001cf71cd91af87f (diff) |
php 5.1.x - Notice: Object of class Piwik_Date could not be converted to int
git-svn-id: http://dev.piwik.org/svn/trunk@3616 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Date.php')
-rw-r--r-- | core/Date.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/Date.php b/core/Date.php index 7ba3461f88..cf09932b2b 100644 --- a/core/Date.php +++ b/core/Date.php @@ -44,6 +44,10 @@ class Piwik_Date */ static public function factory($dateString, $timezone = null) { + if($dateString instanceof self) + { + $dateString = $dateString->toString(); + } if($dateString == 'now') { $date = self::now(); |