Hi lester,

2013/9/9 Lester Caine <les...@lsces.co.uk>

> Martin 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...

Reply via email to