Correctly display future dates (Bug #38755)

git-svn-id: file:///svn/phpbb/trunk@9299 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2009-01-23 12:13:02 +00:00
parent 950842de5c
commit d3fa81c261

View file

@ -818,7 +818,7 @@ class phpbb_user extends phpbb_session
$midnight = gmmktime(0, 0, 0, $m, $d, $y) - $date_cache[$format]['zone_offset'];
}
if ($date_cache[$format]['is_short'] !== false && !$forcedate)
if ($date_cache[$format]['is_short'] !== false && !$forcedate && !($gmepoch < $midnight - 86400 || $gmepoch > $midnight + 172800))
{
$day = false;