History log of /PHP-7.1/ext/intl/timezone/timezone_class.cpp (Results 26 – 31 of 31)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 49b1f581 17-May-2012 Gustavo André dos Santos Lopes

Fixed a couple of memory leaks


Revision tags: php-5.3.14RC1, php-5.4.4RC1, php-5.3.13, php-5.4.3, php-5.4.2, php-5.3.12
# 4cfd9995 30-Apr-2012 Gustavo André dos Santos Lopes

Added IntlTimeZone::fromDateTimeZone() and ::toDateTimeZone.

IntlTimeZone::fromDateTimeZone(DateTimeZone $dtz) converts from an
ext/date TimeZone to an IntlTimeZone. The conversion is do

Added IntlTimeZone::fromDateTimeZone() and ::toDateTimeZone.

IntlTimeZone::fromDateTimeZone(DateTimeZone $dtz) converts from an
ext/date TimeZone to an IntlTimeZone. The conversion is done by feeding
the time zone name (essentially what would be given by
DateTimeZone::getName()) to ICU's TimeZone::createTimeZone except if it's
an offset time zone. In that case, the offset is read from the ext/date
time zone object structure and an appopriate id (of the form
GMT<+|-><HH:MM>) is given to ICU's TimeZone::createTimeZone. Not all
ext/date time zones are recognized for ICU. For instance, WEST is not.
Note that these kind of abbreviations, as far as I can tell, can only be
created via ext/date DateTime, not directly through DateTimeZone's
constructor.

For IntlTimeZone::toDateTimeZone(), the behavior is symmetrical.
We instantiate a DateTimeZone and then call its constructor if we don't
have an offset time zone, otherwise we mess with its structure. If the
timezone is not valid for ext/date, then we allow the exception of
DateTimeZone constructor to propagate.

show more ...


Revision tags: php-5.3.11, php-5.4.1, php-5.3.11RC2, php-5.4.1RC2
# 9a35d45a 06-Apr-2012 Gustavo André dos Santos Lopes

Accept DateTimeZone where time zones are expected.

Also unified timezone handling in IntlCalendar::setTimeZone()
to that in the IntlCalendar and IntlGregorianCalendar constructors.


# 95fbae89 01-Apr-2012 Gustavo André dos Santos Lopes

Compatibility with old versions of ICU (4.0+).


# 69f75bb4 01-Apr-2012 Gustavo André dos Santos Lopes

Added support for new method TimeZone::getUnknown() added in ICU 49.


# 5e65205a 01-Apr-2012 Gustavo André dos Santos Lopes

Initial checkin of calendar/timezone code.


12