diff --git a/cake/libs/view/helpers/time.php b/cake/libs/view/helpers/time.php index 0e04c6338..1f4d0be1c 100644 --- a/cake/libs/view/helpers/time.php +++ b/cake/libs/view/helpers/time.php @@ -226,9 +226,9 @@ class TimeHelper extends AppHelper { $y = $this->isThisYear($date) ? '' : ' %Y'; - if ($this->isToday($date)) { + if ($this->isToday($dateString, $userOffset)) { $ret = sprintf(__('Today, %s',true), strftime("%H:%M", $date)); - } elseif ($this->wasYesterday($date)) { + } elseif ($this->wasYesterday($dateString, $userOffset)) { $ret = sprintf(__('Yesterday, %s',true), strftime("%H:%M", $date)); } else { $format = $this->convertSpecifiers("%b %eS{$y}, %H:%M", $date);