Browse Source

Merge pull request #4742 from Laykou/patch-1

Fix timeAgo Timezones problem
Mark Story 11 years ago
parent
commit
6310eb3c1e
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/I18n/Time.php

+ 1 - 2
src/I18n/Time.php

@@ -278,8 +278,7 @@ class Time extends Carbon implements JsonSerializable {
 		}
 
 		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