Revision tags: php-5.4.5, php-5.3.15, php-5.3.15RC1, php-5.4.5RC1 |
|
#
9c5074a4 |
| 25-Jun-2012 |
Gustavo André dos Santos Lopes |
Fix undeclared intl_locale_get_default() This was causing segfaults at least in the resourcebundle constructor. Also moved intl_locale_get_default() to a more central location
Fix undeclared intl_locale_get_default() This was causing segfaults at least in the resourcebundle constructor. Also moved intl_locale_get_default() to a more central location and fixed a constness warning in resourcebundle_ctor().
show more ...
|
Revision tags: php-5.3.14, php-5.4.4 |
|
#
eb346ef0 |
| 03-Jun-2012 |
Gustavo André dos Santos Lopes |
DateFormat plays nice with Calendar, TimeZone The following changes were made: * The IntlDateFormatter constructor now accepts the usual values for its $timezone argument. Thi
DateFormat plays nice with Calendar, TimeZone The following changes were made: * The IntlDateFormatter constructor now accepts the usual values for its $timezone argument. This includes timezone identifiers, IntlTimeZone objects, DateTimeZone objects and NULL. An empty string is not accepted. An invalid time zone is no longer accepted (it used to use UTC in this case). * When NULL is passed to IntlDateFormatter, the time zone specified in date.timezone is used instead of the ICU default. * The IntlDateFormatter $calendar argument now accepts also an IntlCalendar. In this case, IntlDateFormatter::getCalendar() will return false. * The time zone passed to the IntlDateFormatter is ignored if it is NULL and if the calendar passed is an IntlCalendar object -- in this case, the IntlCalendar time zone will be used instead. Otherwise, the time zone specified in the $timezone argument is used instead. * Added IntlDateFormatter::getCalendarObject(), which always returns the IntlCalendar object that backs the DateFormat, even if a constant was passed to the constructor, i.e., if an IntlCalendar was not passed to the constructor. * Added IntlDateFormatter::setTimeZone(). It accepts the usual values for time zone arguments. If NULL is passed, the time zone of the IntlDateFormatter WILL be overridden with the default time zone, even if an IntlCalendar object was passed to the constructor. * Added IntlDateFormatter::getTimeZone(), which returns the time zone that's associated with the DateFormat. * Depreacated IntlDateFormatter::setTimeZoneId() and made it an alias for IntlDateFormatter::setTimeZone(), as the new ::setTimeZone() also accepts plain identifiers, besides other types. IntlDateFormatter::getTimeZoneId() is not deprecated however. * IntlDateFormatter::setCalendar() with a constant passed should now work correctly. This requires saving the requested locale to the constructor. * Centralized the hacks required to avoid compilation disasters on Windows due to some headers being included inside and outside of extern "C" blocks.
show more ...
|
Revision tags: php-5.3.14RC2, php-5.4.4RC2 |
|
#
82740ef3 |
| 20-May-2012 |
Felipe Pena |
- Fixed build using g++ (which complains about jump that crosses initialization)
|
#
3a81f90e |
| 17-May-2012 |
Gustavo André dos Santos Lopes |
Added IntlCalendar::toDateTime()
|
#
887744f6 |
| 17-May-2012 |
Gustavo André dos Santos Lopes |
Fixed bad DateTime construction state check
|
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, php-5.3.11, php-5.4.1, php-5.3.11RC2, php-5.4.1RC2 |
|
#
81278e1b |
| 06-Apr-2012 |
Gustavo André dos Santos Lopes |
Added IntlCalendar::fromDateTime() IntlCalendar::fromDateTime(DateTime|string $dateTime[, string $locale) intlcal_from_date_time(...) If a string is given as the first argument,
Added IntlCalendar::fromDateTime() IntlCalendar::fromDateTime(DateTime|string $dateTime[, string $locale) intlcal_from_date_time(...) If a string is given as the first argument, the method will try to instantiate a new DateTime object and use that instead.
show more ...
|
#
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+).
|
#
d3a29c10 |
| 01-Apr-2012 |
Gustavo André dos Santos Lopes |
Supported Calendar methods new to ICU 49.
|
#
5e65205a |
| 01-Apr-2012 |
Gustavo André dos Santos Lopes |
Initial checkin of calendar/timezone code.
|