svn: /phpdoc/en/trunk/reference/datetime/ timezones.xml
| From: | Adam Harvey | Date: | Fri, 05 Sep 2014 20:50:43 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/datetime/ timezones.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-12788@lists.php.net to get a copy of this message | ||
aharvey Fri, 05 Sep 2014 20:50:43 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=334771
Log:
Explicitly note that the Etc/GMT[+-]\d+ timezones are weird.
Changed paths:
U phpdoc/en/trunk/reference/datetime/timezones.xml
Modified: phpdoc/en/trunk/reference/datetime/timezones.xml
===================================================================
--- phpdoc/en/trunk/reference/datetime/timezones.xml 2014-09-05 20:50:14 UTC (rev 334770)
+++ phpdoc/en/trunk/reference/datetime/timezones.xml 2014-09-05 20:50:43 UTC (rev 334771)
@@ -984,6 +984,25 @@
<warning>
&date.timezone.bc;
</warning>
+ <warning>
+ <simpara>
+ If you disregard the above warning, please also note that the IANA
+ timezone database that provides PHP's timezone support uses POSIX style
+ signs, which results in the <literal>Etc/GMT+n</literal> and
+ <literal>Etc/GMT-n</literal> time zones being reversed from common usage.
+ </simpara>
+ <simpara>
+ For example, the time zone 8 hours ahead of GMT that is used in China and
+ Western Australia (among other places) is actually
+ <literal>Etc/GMT-8</literal> in this database, not
+ <literal>Etc/GMT+8</literal> as you would normally expect.
+ </simpara>
+ <simpara>
+ Once again, it is strongly recommended that you use the correct time zone
+ for your location, such as <literal>Asia/Shanghai</literal> or
+ <literal>Australia/Perth</literal> for the above examples.
+ </simpara>
+ </warning>
</sect1>
</appendix>