com web/php: "z" starts at 0. And $now = $_SERVER[" REQUEST_TIME"] already: images/logo.php
| From: | Hannes Magnusson | 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-18065@lists.php.net to get a copy of this message | ||
Commit: a1173b6333445a08e374690847e2cb47f2e85532
Author: Hannes Magnusson <bjori@mongodb.com> Tue, 7 Jan 2014 11:11:59 -0800
Parents: fc9b8520d3409d275368a2db5914363a09f3852b
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=a1173b6333445a08e374690847e2cb47f2e85532
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");
}