From cf3589fbb1dfb0b0ca9aa58e0b9d1b21f0a507bd Mon Sep 17 00:00:00 2001 From: Ladislav Gallay Date: Fri, 26 Sep 2014 17:55:15 +0200 Subject: [PATCH] Fix timeAgo Timezones problem --- src/I18n/Time.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/I18n/Time.php b/src/I18n/Time.php index 7bbfb5d99b1..ad137a2264d 100644 --- a/src/I18n/Time.php +++ b/src/I18n/Time.php @@ -278,8 +278,7 @@ public function timeAgoInWords(array $options = []) { } if ($diff > abs($now - (new static($end))->format('U'))) { - $absoluteTime = new static($inSeconds); - return sprintf($absoluteString, $absoluteTime->i18nFormat($format)); + return sprintf($absoluteString, $this->i18nFormat($format)); } // If more than a week, then take into account the length of months