svn: /phpdoc/en/trunk/reference/datetime/functions/ date-default-timezone-get.xml

From: Date: Fri, 08 Apr 2011 09:39:09 +0000
Subject: svn: /phpdoc/en/trunk/reference/datetime/functions/ date-default-timezone-get.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-7934@lists.php.net to get a copy of this message
derick Fri, 08 Apr 2011 09:39:09 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=310049 Log: - Clarify the guessing stage of date_default_timezone_get() a bit to prevent bug reports such as #54481. Bug: http://bugs.php.net/54481 (Open) date_default_timezone_get() returns incorrect timezone Changed paths: U phpdoc/en/trunk/reference/datetime/functions/date-default-timezone-get.xml Modified: phpdoc/en/trunk/reference/datetime/functions/date-default-timezone-get.xml =================================================================== --- phpdoc/en/trunk/reference/datetime/functions/date-default-timezone-get.xml 2011-04-08 09:14:32 UTC (rev 310048) +++ phpdoc/en/trunk/reference/datetime/functions/date-default-timezone-get.xml 2011-04-08 09:39:09 UTC (rev 310049) @@ -35,7 +35,11 @@ </listitem> <listitem> <para> - Querying the host operating system (if supported and allowed by the OS) + Querying the host operating system (if supported and allowed by the OS). This uses an algorithm + that has to <strong>guess</strong> the timezone. This is by no means going to work correctly for + every situation. A warning is shown when this stage is reached. Do not rely on it to be guessed + correctly, and set <link linkend="ini.date.timezone">date.timezone</link> to the correct timezone + instead. </para> </listitem> </itemizedlist>

« previous php.doc.cvs (#7934) next »