From 0900962a11ae15c757cfd81341e5f168a526acc7 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Fri, 8 Apr 2011 09:39:09 +0000 Subject: [PATCH] - Clarify the guessing stage of date_default_timezone_get() a bit to prevent bug reports such as #54481. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@310049 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/datetime/functions/date-default-timezone-get.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reference/datetime/functions/date-default-timezone-get.xml b/reference/datetime/functions/date-default-timezone-get.xml index 475ebff27e..2ff0ca7c0f 100644 --- a/reference/datetime/functions/date-default-timezone-get.xml +++ b/reference/datetime/functions/date-default-timezone-get.xml @@ -35,7 +35,11 @@ - 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 guess 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 date.timezone to the correct timezone + instead.