Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Tags: stuck1a/polyfill

Tags

v1.0.0+1.23.1

Toggle v1.0.0+1.23.1's commit message
feature symfony#343 [PHP 8] Add IntlDateFormatter::RELATIVE_* constan…

…ts (sebpacz)

This PR was squashed before being merged into the 1.23-dev branch.

Discussion
----------

[PHP 8] Add IntlDateFormatter::RELATIVE_* constants

This PR adds polyfill for new constants introduced for dateType in the `IntlDateFormatter` class (see https://www.php.net/manual/en/class.intldateformatter.php#intl.intldateformatter-constants). The new constants work the same as `IntlDateFormatter::FULL`, `IntlDateFormatter::LONG`, `IntlDateFormatter::MEDIUM`, `IntlDateFormatter::SHORT`, but yesterday, today, and tomorrow is displayed as yesterday, today, and tomorrow, respectively. Moreover, I discovered that the pattern is ignored if the date, that will be formatted is the today, yesterday, or tomorrow date.

Commits
-------

0fb6d7f [PHP 8] Add IntlDateFormatter::RELATIVE_* constants

v1.23.1

Toggle v1.23.1's commit message

Verified

This tag was signed with the committer’s verified signature.
fabpot Fabien Potencier
Create tag v1.23.1

v1.23.0

Toggle v1.23.0's commit message

Verified

This tag was signed with the committer’s verified signature.
fabpot Fabien Potencier
Create tag v1.23.0

v1.22.1

Toggle v1.22.1's commit message

Verified

This tag was signed with the committer’s verified signature.
fabpot Fabien Potencier
Create tag v1.22.1

v1.22.0

Toggle v1.22.0's commit message

Verified

This tag was signed with the committer’s verified signature.
fabpot Fabien Potencier
Create tag v1.22.0

v1.20.0

Toggle v1.20.0's commit message

Verified

This tag was signed with the committer’s verified signature.
fabpot Fabien Potencier
Create tag v1.20.0

v1.19.0

Toggle v1.19.0's commit message

Verified

This tag was signed with the committer’s verified signature.
fabpot Fabien Potencier
Create tag v1.19.0

v1.18.1

Toggle v1.18.1's commit message

Verified

This tag was signed with the committer’s verified signature.
fabpot Fabien Potencier
Create tag v1.18.1

v1.18.0

Toggle v1.18.0's commit message

Verified

This tag was signed with the committer’s verified signature.
fabpot Fabien Potencier
Create tag v1.18.0

v1.17.1

Toggle v1.17.1's commit message

Verified

This tag was signed with the committer’s verified signature.
fabpot Fabien Potencier
Create tag v1.17.1

Morty Proxy This is a proxified and sanitized view of the page, visit original site.