#46589 [NEW]: am/pm issue

2008-11-16 Thread micah_blu at bluprintsmedia dot net
From: micah_blu at bluprintsmedia dot net
Operating system: Linux
PHP version:  5.2.6
PHP Bug Type: Date/time related
Bug description:  am/pm issue

Description:

date() function returns wrong am/pm, usually always outputs am instead of
pm

Reproduce code:
---
echo date("Y-m-d h:i a");



Expected result:

//outputs:
2008-11-16 9:26 pm

Actual result:
--
//outputs:
2008-11-16 9:26 am

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



#46501 [NEW]: date() doesn't account for daylights savings & am/pm returns incorrectly

2008-11-06 Thread micah_blu at bluprintsmedia dot net
From: micah_blu at bluprintsmedia dot net
Operating system: Linux
PHP version:  5.2.6
PHP Bug Type: Date/time related
Bug description:  date() doesn't account for daylights savings & am/pm returns 
incorrectly

Description:

date() doesn't account for daylights savings & am/pm returns incorrectly.
The date("I") returns 0 even though it should return 1. Here is system info
produced by phpinfo():

:Linux p3slh166.shr.phx3.secureserver.net 2.4.21-53.ELsmp #1 SMP Wed Nov
14 03:54:12 EST 2007 i686

The server is not dedicated.
Would appreciate any help you could give!

Reproduce code:
---
date("Y-m-d h:i a); //returns am times as pm and is 1 hour ahead.


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