Skip to content

Commit

Permalink
use "standalone" names for month and day. fixes #12
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Jan 26, 2024
1 parent 17f8419 commit ad7220c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/php-8.1-strftime.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
];
Expand Down

0 comments on commit ad7220c

Please sign in to comment.