<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>[PHP-DEV] IntlCalendar/IntlTimeZone and ext/date</title>
        <description> I've made some modifications to ext/intl's IntlCalendar/IntlTimeZone to  
improve interoperability.

* DateTimeZone is now accepted in all places time zones are expected in  
IntlCalendar.
* Added IntlTimeZone::toDateTimeZone() and  
IntlTimeZone::fromDateTimeZone().
* Added IntlCalendar::toDateTime() and IntlCalendar::fromDateTime().

Unfortunately, ext/date doesn't expose a lot of interfaces to manipulate  
its objects, so in some places I ended up having to call PHP_FUNCTIONs (in  
one case even twice doing to a bug; see  
https://github.com/cataphract/php-src/commit/3a81f90ebc51140484c617539b1a5fb0e117f4e2#L1R1264  
).

The conversion from DateTimeZone to IntlTimeZone is made through the ids  
only because ext/date doesn't expose interfaces to efficiently implement  
ICU's TimeZone. This may lead to some different behavior for the same time  
zone id if the databases are out of sync.

The changes are here:  
https://github.com/cataphract/php-src/compare/intl_calendar

If no one objects, I'll merge it soon.

-- 
Gustavo Lopes

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php</description>
        <link>http://www.serverphorums.com/read.php?7,498266,498266#msg-498266</link>
        <lastBuildDate>Wed, 19 Jun 2013 13:32:22 +0200</lastBuildDate>
        <generator>Phorum 5.2.18</generator>
        <item>
            <guid>http://www.serverphorums.com/read.php?7,498266,498266#msg-498266</guid>
            <title>[PHP-DEV] IntlCalendar/IntlTimeZone and ext/date</title>
            <link>http://www.serverphorums.com/read.php?7,498266,498266#msg-498266</link>
            <description><![CDATA[ I've made some modifications to ext/intl's IntlCalendar/IntlTimeZone to  <br />
improve interoperability.<br />
<br />
* DateTimeZone is now accepted in all places time zones are expected in  <br />
IntlCalendar.<br />
* Added IntlTimeZone::toDateTimeZone() and  <br />
IntlTimeZone::fromDateTimeZone().<br />
* Added IntlCalendar::toDateTime() and IntlCalendar::fromDateTime().<br />
<br />
Unfortunately, ext/date doesn't expose a lot of interfaces to manipulate  <br />
its objects, so in some places I ended up having to call PHP_FUNCTIONs (in  <br />
one case even twice doing to a bug; see  <br />
<a href="https://github.com/cataphract/php-src/commit/3a81f90ebc51140484c617539b1a5fb0e117f4e2#L1R1264" target="_blank"  rel="nofollow">https://github.com/cataphract/php-src/commit/3a81f90ebc51140484c617539b1a5fb0e117f4e2#L1R1264</a>  <br />
).<br />
<br />
The conversion from DateTimeZone to IntlTimeZone is made through the ids  <br />
only because ext/date doesn't expose interfaces to efficiently implement  <br />
ICU's TimeZone. This may lead to some different behavior for the same time  <br />
zone id if the databases are out of sync.<br />
<br />
The changes are here:  <br />
<a href="https://github.com/cataphract/php-src/compare/intl_calendar" target="_blank"  rel="nofollow">https://github.com/cataphract/php-src/compare/intl_calendar</a><br />
<br />
If no one objects, I'll merge it soon.<br />
<br />
-- <br />
Gustavo Lopes<br />
<br />
-- <br />
PHP Internals - PHP Runtime Development Mailing List<br />
To unsubscribe, visit: <a href="http://www.php.net/unsub.php" target="_blank"  rel="nofollow">http://www.php.net/unsub.php</a>]]></description>
            <dc:creator>Gustavo Lopes</dc:creator>
            <category>php-internals</category>
            <pubDate>Thu, 17 May 2012 23:40:02 +0200</pubDate>
        </item>
    </channel>
</rss>
