From ad7220ce99c21272592e47d8e422a78dfa3648f2 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 26 Jan 2024 18:51:49 +0100 Subject: [PATCH] use "standalone" names for month and day. fixes #12 --- src/php-8.1-strftime.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/php-8.1-strftime.php b/src/php-8.1-strftime.php index 076538e..18fc178 100644 --- a/src/php-8.1-strftime.php +++ b/src/php-8.1-strftime.php @@ -44,9 +44,9 @@ function strftime (string $format, $timestamp = null, ?string $locale = null) : $locale = Locale::canonicalize($locale ?? setlocale(LC_TIME, '0')); $intl_formats = [ - '%a' => 'EEE', // An abbreviated textual representation of the day Sun through Sat + '%a' => 'ccc', // An abbreviated textual representation of the day Sun through Sat '%A' => 'EEEE', // A full textual representation of the day Sunday through Saturday - '%b' => 'MMM', // Abbreviated month name, based on the locale Jan through Dec + '%b' => 'LLL', // Abbreviated month name, based on the locale Jan through Dec '%B' => 'MMMM', // Full month name, based on the locale January through December '%h' => 'MMM', // Abbreviated month name, based on the locale (an alias of %b) Jan through Dec ];