ID:               38625
 User updated by:  ashokmca dot g at gmail dot com
 Reported By:      ashokmca dot g at gmail dot com
 Status:           Bogus
 Bug Type:         *General Issues
 Operating System: Windows XP
 PHP Version:      5.1.5
 New Comment:

then what i give on the time zone


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

[2006-08-28 11:39:59] [EMAIL PROTECTED]

"GMT+5:30" is not a valid name for timezone.

------------------------------------------------------------------------

[2006-08-28 11:28:45] ashokmca dot g at gmail dot com

hi tony thanks for your reply

i already set this in php.ini file

date.timezone = "GMT+5:30"

------------------------------------------------------------------------

[2006-08-28 11:26:26] [EMAIL PROTECTED]

You need to set date.timezone in your php.ini.

------------------------------------------------------------------------

[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

Reply via email to