mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fixed bug #69398 IntlDateFormatter formatObject returns wrong value when time style is NONE
This commit is contained in:
parent
527ddacd20
commit
0112b64a34
2 changed files with 25 additions and 1 deletions
|
@ -146,7 +146,9 @@ U_CFUNC PHP_FUNCTION(datefmt_format_object)
|
|||
}
|
||||
|
||||
//there's no support for relative time in ICU yet
|
||||
timeStyle = (DateFormat::EStyle)(timeStyle & ~DateFormat::kRelative);
|
||||
if (timeStyle != DateFormat::NONE) {
|
||||
timeStyle = (DateFormat::EStyle)(timeStyle & ~DateFormat::kRelative);
|
||||
}
|
||||
|
||||
zend_class_entry *instance_ce = Z_OBJCE_P(object);
|
||||
if (instanceof_function(instance_ce, Calendar_ce_ptr)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue