ID: 38625
Updated by: [EMAIL PROTECTED]
Reported By: ashokmca dot g at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: Windows XP
PHP Version: 5.1.5
New Comment:
You need to set date.timezone in your php.ini.
Previous Comments:
------------------------------------------------------------------------
[2006-08-28 11:22:23] ashokmca dot g at gmail dot com
Description:
------------
hello sir
i use date() and time() function to get current date and time
but it will give less than 5:30 as compare my current time.
the timezone For my pc is GMT+5:30
but in php UTC
i cant resolve this
please help me
Reproduce code:
---------------
<?
echo date("F j, Y, h:i:s a", time());
?>
Expected result:
----------------
August 28, 2006, 4:44:09 pm
Actual result:
--------------
August 28, 2006, 11:16:25 am
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38625&edit=1