From:             
Operating system: Irrelevant
PHP version:      Irrelevant
Package:          Date/time related
Bug Type:         Feature/Change Request
Bug description:Abbreviated month comes out wrong.

Description:
------------
Abbreviated month always displays month names with three letters.



However ... in Swedish we never write July and June with three letters.

This is seen as wrong and not the standard way of shortening the month
names.



The reason is simple. July (juli in swedish) when shortening to three
letter 

becomes 'Jul' which is the swedish word for christmas.



I realized how stupid and funny it looks when I programmed a calendar
plugin for 

wordpress and I echoed some dates in July.



So both July and June should spell out juli and juni when set_locale is set
to 

Swedish language.



One more detail; Month names should are written in lowercase in Swedish
when 

used in sentences. This can of course simply be controlled by the
programmer 

using strtolower() and should be the prefered solution I'd say.

Test script:
---------------
<?php



setlocale(LC_ALL, 'sv_SE');



echo strftime('%d %b %Y', strtotime("2 July 2011"));



?>

Expected result:
----------------
2 Juli 2011

Actual result:
--------------
2 Jul 2011



(Jul = Christmas in swedish)

-- 
Edit bug report at http://bugs.php.net/bug.php?id=54699&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=54699&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=54699&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=54699&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=54699&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=54699&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=54699&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=54699&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=54699&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=54699&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=54699&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=54699&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=54699&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=54699&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=54699&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=54699&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=54699&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=54699&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=54699&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=54699&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=54699&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=54699&r=mysqlcfg

Reply via email to