Commit:    794b1fe0e4770908ab859975f91b10f6ccb701ed
Author:    Hannes Magnusson <[email protected]>         Mon, 9 Dec 2013 
09:08:59 -0800
Parents:   177746bd81dd0b8635db8c8a5d5245ac0a72ffd8
Branches:  master

Link:       
http://git.php.net/?p=web/php.git;a=commitdiff;h=794b1fe0e4770908ab859975f91b10f6ccb701ed

Log:
Set the timezone

Changed paths:
  M  images/logo.php


Diff:
diff --git a/images/logo.php b/images/logo.php
index 14b8841..340160d 100644
--- a/images/logo.php
+++ b/images/logo.php
@@ -19,6 +19,11 @@ function imgheader($filename) {
     header("Content-Type: " . $hdr);
 }
 
+// Be 100% sure the timezone is set
+if (ini_get("date.timezone") === "" && 
function_exists("date_default_timezone_set")) {
+    date_default_timezone_set("UTC");
+}
+
 $now = $_SERVER["REQUEST_TIME"];
 $logos = array(
     "./logos/[email protected]",


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to