Martin Keckeis wrote:
Hi lester,

2013/9/9 Lester Caine <les...@lsces.co.uk <mailto: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...

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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to