From:             rosty dot kerei at gmail dot com
Operating system: Windows
PHP version:      5.1.4
PHP Bug Type:     Date/time related
Bug description:  The GMT time actually shows UTC time

Description:
------------
The function gmdate() actually returns UTC time instead of GMT and it's
different on summer time (GMT = UTC+1 hour). Learn more here:
http://en.wikipedia.org/wiki/GMT
http://en.wikipedia.org/wiki/UTC

For example, now I'm situated in Kiev, Ukraine (GMT+2), it's summer time
and it's 04:00AM here, but in London (in GMT zone) it's 02:00AM, however
the function returns 01:00AM - it's not GMT, it's UTC time. This function
should work well in winter.

Reproduce code:
---------------
<?php
        echo gmdate('H:i', time());
?>

Expected result:
----------------
02:00AM



Actual result:
--------------
01:00AM

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

Reply via email to