diff options
author | Andreas Gohr <andi@splitbrain.org> | 2024-01-26 19:34:12 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2024-10-30 19:52:46 +0100 |
commit | db9267247e06d4aae1a33463c71b2c22d7f7a2a7 (patch) | |
tree | c9e045716f47a1d1780be41d5649ca18ae0a3821 /composer.lock | |
parent | 850e662095111529d7d330745fee3207907c4aee (diff) | |
download | dokuwiki-db9267247e06d4aae1a33463c71b2c22d7f7a2a7.tar.gz dokuwiki-db9267247e06d4aae1a33463c71b2c22d7f7a2a7.zip |
Replace strftime with Intl ICU. Fixes #3573
This uses a class that maps strftime placeholders to the appropriate ICU
patterns. I am using the fallback-intl branch here which provides an
English-only fallback when the intl extension is not available.
Core has only two places where strftime is used: dformat() and the
SimplePie feed parser. Both are adjusted with this patch. For the latter
a custom Item class had to be registered. For better separation all our
FeedParser classes have been moved to the Feed namespace where our
FeedCreator classes already reside.
Note that this will currently be a degration for users without intl as
it will fall back to date and not to the still available strftime.
Diffstat (limited to 'composer.lock')
-rw-r--r-- | composer.lock | 54 |
1 files changed, 52 insertions, 2 deletions
diff --git a/composer.lock b/composer.lock index 62d84bca5..8154077a8 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "34c61e4640c708005e450f6b5caa5cf8", + "content-hash": "e7609782a9549baad779c2ff22217757", "packages": [ { "name": "aziraphale/email-address-validator", @@ -323,6 +323,55 @@ "time": "2020-10-15T08:29:30+00:00" }, { + "name": "php81_bc/strftime", + "version": "dev-fallback-intl", + "source": { + "type": "git", + "url": "https://github.com/alphp/strftime.git", + "reference": "88e98f00b5d9247e8168c1eb528ab138fbf743d2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/alphp/strftime/zipball/88e98f00b5d9247e8168c1eb528ab138fbf743d2", + "reference": "88e98f00b5d9247e8168c1eb528ab138fbf743d2", + "shasum": "" + }, + "require": { + "php": ">=7.1.0" + }, + "require-dev": { + "phpunit/phpunit": "@stable" + }, + "suggest": { + "ext-intl": "For proper locale aware output" + }, + "type": "library", + "autoload": { + "files": [ + "src/php-8.1-strftime.php" + ], + "psr-4": { + "PHP81_BC\\strftime\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fernando Herrero", + "homepage": "https://github.com/alphp/strftime/graphs/contributors" + } + ], + "description": "Locale-formatted strftime using IntlDateFormatter (PHP 8.1 compatible)", + "support": { + "issues": "https://github.com/alphp/strftime/issues", + "source": "https://github.com/alphp/strftime" + }, + "time": "2024-01-26T18:19:38+00:00" + }, + { "name": "phpseclib/phpseclib", "version": "3.0.42", "source": { @@ -793,7 +842,8 @@ ], "minimum-stability": "stable", "stability-flags": { - "geshi/geshi": 20 + "geshi/geshi": 20, + "php81_bc/strftime": 20 }, "prefer-stable": true, "prefer-lowest": false, |