|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2016-06-02 20:45 UTC] ab@php.net
[2016-06-02 20:45 UTC] ab@php.net
-Status: Open
+Status: Closed
[2016-07-20 11:30 UTC] davey@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 21:00:01 2025 UTC |
Description: ------------ IntlDateFormatter formatObject returns wrong value when time style is NONE (-1) because the code at line 149 in ext/intl/dateformat/dateformat_format_object.cpp //there's no support for relative time in ICU yet timeStyle = (DateFormat::EStyle)(timeStyle & ~DateFormat::kRelative); We can check timeStyle first, if it is not NONE style, process it like above code. New code //there's no support for relative time in ICU yet if (timeStyle != DateFormat::NONE) { timeStyle = (DateFormat::EStyle)(timeStyle & ~DateFormat::kRelative); }