reference/datetime/functions/date-default-timezone-set.xml
0a10abc50524fcbb21807b5e6ebffb3b86d45907
...
...
@@ -11,21 +11,12 @@
11
11
&reftitle.description;
12
12
<methodsynopsis>
13
13
<type>bool</type><methodname>date_default_timezone_set</methodname>
14
-
<methodparam><type>string</type><parameter>timezone_identifier</parameter></methodparam>
14
+
<methodparam><type>string</type><parameter>timezoneId</parameter></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
<function>date_default_timezone_set</function> sets the default timezone
18
18
used by all date/time functions.
19
19
</para>
20
-
<note>
21
-
<para>
22
-
Since PHP 5.1.0 (when the date/time functions were rewritten), every call
23
-
to a date/time function will generate a <constant>E_NOTICE</constant> if
24
-
the timezone isn't valid, and/or a <constant>E_WARNING</constant> message
25
-
if using the system settings or the <varname>TZ</varname> environment
26
-
variable.
27
-
</para>
28
-
</note>
29
20
<para>
30
21
Instead of using this function to set the default timezone in your script,
31
22
you can also use the INI setting <link
...
...
@@ -39,10 +30,11 @@
39
30
<para>
40
31
<variablelist>
41
32
<varlistentry>
42
-
<term><parameter>timezone_identifier</parameter></term>
33
+
<term><parameter>timezoneId</parameter></term>
43
34
<listitem>
44
35
<para>
45
-
The timezone identifier, like <literal>UTC</literal> or
36
+
The timezone identifier, like <literal>UTC</literal>,
37
+
<literal>Africa/Lagos</literal>, <literal>Asia/Hong_Kong</literal>, or
46
38
<literal>Europe/Lisbon</literal>. The list of valid identifiers is
47
39
available in the <xref linkend="timezones"/>.
48
40
</para>
...
...
@@ -56,7 +48,7 @@
56
48
&reftitle.returnvalues;
57
49
<para>
58
50
This function returns &false; if the
59
-
<parameter>timezone_identifier</parameter> isn't valid, or &true;
51
+
<parameter>timezoneId</parameter> isn't valid, or &true;
60
52
otherwise.
61
53
</para>
62
54
</refsect1>
...
...
@@ -85,49 +77,16 @@ if (strcmp($script_tz, ini_get('date.timezone'))){
85
77
</para>
86
78
</refsect1>
87
79

88
-
<refsect1 role="changelog">
89
-
&reftitle.changelog;
90
-
<para>
91
-
<informaltable>
92
-
<tgroup cols="2">
93
-
<thead>
94
-
<row>
95
-
<entry>&Version;</entry>
96
-
<entry>&Description;</entry>
97
-
</row>
98
-
</thead>
99
-
<tbody>
100
-
<row>
101
-
<entry>5.3.0</entry>
102
-
<entry>
103
-
Now throws <constant>E_WARNING</constant> rather than
104
-
<constant>E_STRICT</constant>.
105
-
</entry>
106
-
</row>
107
-
<row>
108
-
<entry>5.1.2</entry>
109
-
<entry>
110
-
The function started to validate the
111
-
<parameter>timezone_identifier</parameter> parameter.
112
-
</entry>
113
-
</row>
114
-
</tbody>
115
-
</tgroup>
116
-
</informaltable>
117
-
</para>
118
-
</refsect1>
119
-

120
80
<refsect1 role="seealso">
121
81
&reftitle.seealso;
122
82
<para>
123
83
<simplelist>
124
84
<member><function>date_default_timezone_get</function></member>
125
-
<member><xref linkend="timezones" /></member>
85
+
<member><xref linkend="timezones"/></member>
126
86
</simplelist>
127
87
</para>
128
88
</refsect1>
129
89
</refentry>
130
-

131
90
<!-- Keep this comment at the end of the file
132
91
Local variables:
133
92
mode: sgml
134
93