com web/php: "z" starts at 0. And $now = $_SERVER[" REQUEST_TIME"] already: images/logo.php
| From: | Paul Dragoonis | Date: | Tue, 07 Jan 2014 19:11:59 +0000 |
| Subject: | com web/php: "z" starts at 0. And $now = $_SERVER[" REQUEST_TIME"] already: images/logo.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-22226@lists.php.net to get a copy of this message | ||
Commit: f68ca4109ec4c7140212fc8b436882305b93d24c
Author: Hannes Magnusson <bjori@mongodb.com> Tue, 7 Jan 2014 11:11:59 -0800
Parents: 066dd23bcb111581a5baa8f58d16a64b53a6f194
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=f68ca4109ec4c7140212fc8b436882305b93d24c
Log:
"z" starts at 0. And $now = $_SERVER["REQUEST_TIME"] already
Changed paths:
M images/logo.php
Diff:
diff --git a/images/logo.php b/images/logo.php
index 8e41e78..9f5b3a6 100644
--- a/images/logo.php
+++ b/images/logo.php
@@ -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");
}