From:             
Operating system: Windows 7 x32
PHP version:      5.3.5
Package:          Date/time related
Bug Type:         Bug
Bug description:Date H (and h) returns +7 hours

Description:
------------
Want to get the date without any calculations and i got it wrong



Is 15:54:09 and Php..



date("H:i:s") returns me 22:54:09

date("h:i:s") returns me 10:54:09



Maybe you need to check exactly on March 14 2011 to see the same result as
me

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

echo date("H:i:s");

// or

echo date("h:i:s");

?>

Expected result:
----------------
Current time

Actual result:
--------------
The time +7 hours

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

Reply via email to