1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

Merge branch '3.3.x'

This commit is contained in:
Máté Bartus
2021-07-31 12:06:48 +02:00
2 changed files with 18 additions and 5 deletions

View File

@@ -97,19 +97,19 @@ class datetime extends \DateTime
$midnight = $midnight->getTimestamp();
if ($timestamp <= $midnight + 2 * 86400)
if ($timestamp < $midnight + 2 * 86400)
{
$day = false;
if ($timestamp > $midnight + 86400)
if ($timestamp >= $midnight + 86400)
{
$day = 'TOMORROW';
}
else if ($timestamp > $midnight)
else if ($timestamp >= $midnight)
{
$day = 'TODAY';
}
else if ($timestamp > $midnight - 86400)
else if ($timestamp >= $midnight - 86400)
{
$day = 'YESTERDAY';
}