From:             Michael dot Forman at Colorado dot EDU
Operating system: Mac OS 10.5.7
PHP version:      5.2.10
PHP Bug Type:     Date/time related
Bug description:  gmdate("Y") returns "0000"

Description:
------------
Within Joomla, called from the "libraries/joomla/utilities/data.php"
library, the function gmdate("Y") returns "0000", whereas gmdate("y")
correctly returns "09".  If functions correctly on the command line.

Reproduce code:
---------------
$date = strtotime(gmdate("M d Y H:i:s", time()));
echo $date;

// This returns "Jul 18 0000 23:05:58".


Expected result:
----------------
It should return "Jul 18 2009 23:05:58".


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

Reply via email to