Skip to content

Commit

Permalink
Merge pull request #19 from splitbrain/issue12
Browse files Browse the repository at this point in the history
use "standalone" names for month and day. fixes #12
  • Loading branch information
alphp authored Jan 26, 2024
2 parents 17f8419 + ad7220c commit cc286d6
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 cc286d6

Please sign in to comment.