1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

"z" starts at 0. And $now = $_SERVER["REQUEST_TIME"] already

This commit is contained in:
Hannes Magnusson
2014-01-07 11:11:59 -08:00
parent fc9b8520d3
commit a1173b6333

View File

@@ -44,8 +44,8 @@ switch($_SERVER["QUERY_STRING"]) {
}
/* xmas season, december and the first week of January */
$day = date("z", $_SERVER["REQUEST_TIME"]) - date("L", $now);
if ($day < 7 || 365-$day < 32) {
$day = date("z", $now) - date("L", $now);
if ($day < 6 || 365-$day < 32) {
$logos = array("./logos/php-xmas-2013.png");
}