mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/13105] Do not display future dates 2+ days ahead as "tomorrow"
PHPBB3-13105
This commit is contained in:
parent
459c62b339
commit
e803efc6fc
1 changed files with 20 additions and 17 deletions
|
@ -91,6 +91,8 @@ class datetime extends \DateTime
|
||||||
|
|
||||||
$midnight = $midnight->getTimestamp();
|
$midnight = $midnight->getTimestamp();
|
||||||
|
|
||||||
|
if ($timestamp <= $midnight + 2 * 86400)
|
||||||
|
{
|
||||||
$day = false;
|
$day = false;
|
||||||
|
|
||||||
if ($timestamp > $midnight + 86400)
|
if ($timestamp > $midnight + 86400)
|
||||||
|
@ -113,6 +115,7 @@ class datetime extends \DateTime
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return strtr(parent::format($format['format_long']), $format['lang']);
|
return strtr(parent::format($format['format_long']), $format['lang']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue