Re: 5.4 DateTimeZone: Supported timezones have changed
| From: | Lester Caine | Date: | Mon, 09 Sep 2013 13:25:19 +0000 |
| Subject: | Re: 5.4 DateTimeZone: Supported timezones have changed | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-68968@lists.php.net to get a copy of this message | ||
Martin Keckeis wrote:
Hi lester, 2013/9/9 Lester Caine <lester@lsces.co.uk <mailto:lester@lsces.co.uk>>That sounds like a different problem. I've no time to play at the moment, but does an 'non-existent' timezone give you an error? Or is it just the 'retired' timezone names that are a problem? -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.ukMartin Keckeis wrote:Hello together,just wanted to mention, what the list of supported Timezones has changedin 5.4.It's already mentioned here, that all "special" timezones, expect of UTC are deprecated: http://www.php.net/manual/en/__timezones.others.php <http://www.php.net/manual/en/timezones.others.php>But couldn't found that in the upgrade guide...so i used CET somewhere in my code and didn't found the error soon....A short note in the upgrade guid would be great!This is not so much an 'upgrade' note, but rather a update to the timezone library in general. The tz database is being 'rationalised' at the moment, and the base list of zone names simplified, with many of these only being retained for 'backwards' compatibility. Derick will probably add a comment, but we can expect a few more changes over the next couple of updates to the tz data.Okay no problem, just wanted to mention it. If you use a deprecated Timezone somewhere and don't know it, it's hard to track down...(no exception) I only found it "randomly" today, that i've used it there and all time data in the database are not correct... If you use something like: \DateTime::createFromFormat('Y-m-d H:i:s', '2013-09-09 14:49:00', new DateTimeZone('CET')) Just the default timezone from ini will be used and therefor the dateTime value is wrong if you save it or display it somewhere...