From 7d550ae08471601c6f92c3973d44cbd72f828acd Mon Sep 17 00:00:00 2001 From: "Daniel P. Brown" <danbrown@php.net> Date: Fri, 18 Jul 2008 00:46:20 +0000 Subject: [PATCH] Rewrote the description section, correcting grammar, rewording the structure, and expanding a bit on the actions. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@262908 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../functions/date-default-timezone-get.xml | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/reference/datetime/functions/date-default-timezone-get.xml b/reference/datetime/functions/date-default-timezone-get.xml index 6ace09a3f2..ba24430b5c 100755 --- a/reference/datetime/functions/date-default-timezone-get.xml +++ b/reference/datetime/functions/date-default-timezone-get.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry xml:id="function.date-default-timezone-get" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>date_default_timezone_get</refname> @@ -14,38 +14,33 @@ <void/> </methodsynopsis> <para> - This functions returns the default timezone, using the following "guess" - order: + In order of preference, this function returns the default timezone by: <itemizedlist> <listitem> <para> - The timezone set using the + Reading the timezone set using the <function>date_default_timezone_set</function> function (if any) </para> </listitem> <listitem> <para> - The <varname>TZ</varname> environment variable (if non empty) + Reading the <varname>TZ</varname> environment variable (if non empty) </para> </listitem> <listitem> <para> - The <link linkend="ini.date.timezone">date.timezone</link> ini option + Reading the value of the <link linkend="ini.date.timezone">date.timezone</link> ini option (if set) </para> </listitem> <listitem> <para> - "magical" guess (if the operating system supports it) + Querying the host operating system (if supported and allowed by the OS) </para> </listitem> - <listitem> - <para> - If none of the above options succeeds, return <literal>UTC</literal> - </para> - </listitem> - </itemizedlist> </para> + If none of the above succeed, <methodname>date_default_timezone_get</method> + will return a default timezone of <literal>UTC</literal>. </refsect1> <refsect1 role="returnvalues">