OPEN includes/session.php
FIND
- Код: Выделить всё
// Show date <= 1 hour ago as 'xx min ago' but not greater than 60 seconds in the future
// A small tolerence is given for times in the future but in the same minute are displayed as '< than a minute ago'
if ($delta <= 3600 && $delta > -60 && ($delta >= -5 || (($now / 60) % 60) == (($gmepoch / 60) % 60)) && $date_cache[$format]['is_short'] !== false && !$forcedate && isset($this->lang['datetime']['AGO']))
{
return $this->lang(array('datetime', 'AGO'), max(0, (int) floor($delta / 60)));
}
REPLACE WITH
- Код: Выделить всё
// Show date <= 1 hour ago as 'xx min ago' but not greater than 60 seconds in the future
// A small tolerence is given for times in the future but in the same minute are displayed as '< than a minute ago'
if ($delta <= 43200 && $delta > -60 && ($delta >= -5 || (($now / 60) % 60) == (($gmepoch / 60) % 60)) && $date_cache[$format]['is_short'] !== false && !$forcedate && isset($this->lang['datetime']['AGO']))
{
return $this->lang(array('datetime', 'AGO'), max(0, (int) floor($delta / 60)), max(0, (int) floor($delta / 3600)), max(0, (int) floor(($delta % 3600) / 60)));
}
OPEN language/en/common.php
FIND
- Код: Выделить всё
60 => '1 hour ago',
ADD AFTER
- Код: Выделить всё
61 => '%2$d hour and %3$d minutes ago',
120 => '%2$d hours and %3$d minutes ago',
OPEN language/ru/common.php
FIND
- Код: Выделить всё
60 => '1 час назад',
ADD AFTER
- Код: Выделить всё
61 => '%2$d час %3$d минут назад',
120 => '%2$d часа %3$d минут назад',
300 => '%2$d часов %3$d минут назад',
Тема на оф.сайте -