Re: svn: /phpdoc/en/trunk/ language-snippets.ent
| From: | Derick Rethans | Date: | Mon, 25 Jul 2016 10:07:51 +0000 |
| Subject: | Re: svn: /phpdoc/en/trunk/ language-snippets.ent | ||
| References: | 1 | Groups: | php.doc.cvs |
| Request: | Send a blank email to doc-cvs+get-14360@lists.php.net to get a copy of this message | ||
On Mon, 25 Jul 2016, Christoph Michael Becker wrote:
> cmb Mon, 25 Jul 2016 09:25:04 +0000
>
> Revision:
> http://svn.php.net/viewvc?view=revision&revision=339712
>
> Log:
> Fix #67077: Error timezone offset when trying to set the time zone EET
>
> Bug: https://bugs.php.net/67077 (Assigned) Error timezone
> offset when trying to set the time zone EET
>
> Changed paths:
> U phpdoc/en/trunk/language-snippets.ent
>
> Modified: phpdoc/en/trunk/language-snippets.ent
> ===================================================================
> --- phpdoc/en/trunk/language-snippets.ent 2016-07-25 08:51:14 UTC (rev 339711)
> +++ phpdoc/en/trunk/language-snippets.ent 2016-07-25 09:25:04 UTC (rev 339712)
> @@ -717,12 +717,13 @@
> <!ENTITY date.timezone.intro "<para
> xmlns='http://docbook.org/ns/docbook'>
> Here you'll find the complete list of timezones supported by PHP, which are
> meant to be used with e.g. <function>date_default_timezone_set</function>.
> +<caution><simpara>The behavior of timezones not listed here is
> undefined.</simpara></caution>
> </para><note
> xmlns='http://docbook.org/ns/docbook'><simpara>The
> latest version of the timezone database can be
> installed via PECL's <link xlink:href='&url.pecl.package.get;timezonedb'
> xmlns:xlink='http://www.w3.org/1999/xlink'>timezonedb</link>.
> </simpara></note>">
>
> <!ENTITY date.timezone.bc '<simpara
> xmlns="http://docbook.org/ns/docbook">Please do not use
> any of the timezones
> -listed here (besides UTC), they only exist for backward compatible reasons.
> +listed here (besides UTC), they only exist for backward compatible reasons, and may expose
> erroneous behavior.
> </simpara>'>
In the case of EET being expected to be +3, that's not erroneous
behaviour.
The user asked EET, which is UTC+2. The issue here, which not everybody
gets, is that setting a zone with an abbreviation does *not* account for
DST. That means, EET is always UTC+2 - and the summer time variant,
EEST, is always UTC+3. But because EET could potentially also mean other
things, there is no automatic transition. For that, you need to use a
Area/Location style timezone identifier.
cheers,
Derick
--
https://derickrethans.nl | https://xdebug.org | https://dram.io
Like Xdebug? Consider a donation: https://xdebug.org/donate.php
twitter: @derickr and @xdebug