ID:               46501
 Updated by:       [EMAIL PROTECTED]
 Reported By:      micah_blu at bluprintsmedia dot net
-Status:           Open
+Status:           Bogus
 Bug Type:         Date/time related
 Operating System: Linux
 PHP Version:      5.2.6
 New Comment:

We are happy to tell you that you just discovered Daylight Savings
Time. For more information see:
http://webexhibits.org/daylightsaving/b.html
Instead of using mktime/date consider using gmmktime and gmdate which
do
not suffer from DST.




Previous Comments:
------------------------------------------------------------------------

[2008-11-06 09:24:43] micah_blu at bluprintsmedia dot net

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 this bug report at http://bugs.php.net/?id=46501&edit=1

Reply via email to