Skip to content

Commit cf3589f

Browse files
author
Ladislav Gallay
committed
Fix timeAgo Timezones problem
1 parent d5a189d commit cf3589f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/I18n/Time.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,7 @@ public function timeAgoInWords(array $options = []) {
278278
}
279279

280280
if ($diff > abs($now - (new static($end))->format('U'))) {
281-
$absoluteTime = new static($inSeconds);
282-
return sprintf($absoluteString, $absoluteTime->i18nFormat($format));
281+
return sprintf($absoluteString, $this->i18nFormat($format));
283282
}
284283

285284
// If more than a week, then take into account the length of months

0 commit comments

Comments
 (0)