Skip to content

Commit

Permalink
Fix timeAgo Timezones problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Ladislav Gallay committed Sep 26, 2014
1 parent d5a189d commit cf3589f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/I18n/Time.php
Expand Up @@ -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
Expand Down

0 comments on commit cf3589f

Please sign in to comment.