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.json | |
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.json')
-rw-r--r-- | composer.json | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/composer.json b/composer.json index 21ea0c597..1ebcc7c36 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,8 @@ "splitbrain/php-cli": "^1.1", "splitbrain/slika": "^1.0", "kissifrot/php-ixr": "^1.8", - "splitbrain/php-jsstrip": "^1.0" + "splitbrain/php-jsstrip": "^1.0", + "php81_bc/strftime": "dev-fallback-intl" }, "config": { "platform": { |